[gdk-pixbuf] tests: Unlink temporary files



commit df65ea7db666b904b762c8a40518c3f5ec81d7d4
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu May 25 23:29:56 2017 +0100

    tests: Unlink temporary files
    
    Don't leave files behind.

 tests/pixbuf-save.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/tests/pixbuf-save.c b/tests/pixbuf-save.c
index 6c018f7..3737123 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]