summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-05-31 20:10:38 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-05-31 20:10:38 -0400
commit5f726772149809a65bd9d15e7817fa94e272fafe (patch)
treedbd1479fd1fdbb4add3feeed0911ca2214192e26
parent593a9061b715cd985d6ed6d52ee269be6785b198 (diff)
downloadgdk-pixbuf-5f726772149809a65bd9d15e7817fa94e272fafe.tar.gz
Add a better diagnostic message
This test is falling on the builder, but the message doesn't help to find out why.
-rw-r--r--tests/pixbuf-threads.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/pixbuf-threads.c b/tests/pixbuf-threads.c
index e9ae41a6f..268b01fb8 100644
--- a/tests/pixbuf-threads.c
+++ b/tests/pixbuf-threads.c
@@ -43,7 +43,11 @@ load_image (gpointer data,
loader = gdk_pixbuf_loader_new ();
file = fopen (filename, "r");
- g_assert (file);
+ if (!file)
+ {
+ g_warning ("failed to open %s\n", filename);
+ g_assert_not_reached ();
+ }
if (verbose) g_print ("%p start image %s\n", self, filename);
while (!feof (file))