summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-05-25 23:29:56 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-05-25 23:32:06 +0100
commit3dadf0a944179386e28b80d699e8d0754c56d9c8 (patch)
treedd71ec2fa35d678747dcd123d7a847c23340b142
parentf418e311abc44345c03fd0aff6b0bb5f3ed50a3f (diff)
downloadgdk-pixbuf-3dadf0a944179386e28b80d699e8d0754c56d9c8.tar.gz
tests: Unlink temporary files
Don't leave files behind.
-rw-r--r--tests/pixbuf-save.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pixbuf-save.c b/tests/pixbuf-save.c
index 6c018f745..3737123f6 100644
--- a/tests/pixbuf-save.c
+++ b/tests/pixbuf-save.c
@@ -22,6 +22,7 @@
#include "gdk-pixbuf/gdk-pixbuf.h"
#include "test-common.h"
#include <string.h>
+#include <glib/gstdio.h>
#define compare_option(p1, p2, key) \
g_strcmp0 (gdk_pixbuf_get_option (p1, key), gdk_pixbuf_get_option (p2, key))
@@ -73,6 +74,8 @@ test_save_roundtrip (void)
g_object_unref (pixbuf);
g_object_unref (ref);
+
+ g_unlink ("pixbuf-save-roundtrip");
}
static void
@@ -105,6 +108,8 @@ test_save_ico (void)
g_object_unref (pixbuf);
g_object_unref (ref);
+
+ g_unlink ("pixbuf-save-roundtrip");
}
static void