summaryrefslogtreecommitdiff
path: root/tests/pixbuf-short-gif-write.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pixbuf-short-gif-write.c')
-rw-r--r--tests/pixbuf-short-gif-write.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/pixbuf-short-gif-write.c b/tests/pixbuf-short-gif-write.c
index 9e7137ab3..82150d992 100644
--- a/tests/pixbuf-short-gif-write.c
+++ b/tests/pixbuf-short-gif-write.c
@@ -16,6 +16,8 @@ loader_write_from_channel (GdkPixbufLoader *loader,
gsize bytes_read = 0;
GIOStatus read_status;
GError* error = NULL;
+ gboolean ret;
+
if(count_bytes < G_MAXSIZE) {
//read no more than 'count_bytes' bytes
buffer = g_malloc (count_bytes);
@@ -26,8 +28,9 @@ loader_write_from_channel (GdkPixbufLoader *loader,
}
g_assert (read_status == G_IO_STATUS_NORMAL || read_status == G_IO_STATUS_EOF);
- g_assert (gdk_pixbuf_loader_write(loader, buffer, bytes_read, &error));
+ ret = gdk_pixbuf_loader_write(loader, buffer, bytes_read, &error);
g_assert_no_error (error);
+ g_assert (ret);
g_free(buffer);
return bytes_read;
}