[gdk-pixbuf/wip/ebassi/meson: 2/2] tests: Unlink temporary files
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf/wip/ebassi/meson: 2/2] tests: Unlink temporary files
- Date: Thu, 25 May 2017 22:30:49 +0000 (UTC)
commit 5e2b510c850b4bdbf46bf1d8f4baf2649761430b
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]