[glib] tests: clean up / ignore some more generated files



commit e2655cd455db5ce3c768693127d983086ac1345c
Author: Dan Winship <danw gnome org>
Date:   Sat Apr 4 10:00:39 2015 -0400

    tests: clean up / ignore some more generated files

 gio/tests/.gitignore      |    2 ++
 glib/tests/Makefile.am    |    2 +-
 glib/tests/bookmarkfile.c |    1 +
 glib/tests/fileutils.c    |    1 +
 glib/tests/keyfile.c      |    1 +
 5 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/.gitignore b/gio/tests/.gitignore
index 5d318a5..3a8dd04 100644
--- a/gio/tests/.gitignore
+++ b/gio/tests/.gitignore
@@ -101,6 +101,7 @@ monitor
 network-address
 network-monitor
 org.gtk.test.enums.xml
+org.gtk.test.gschema.xml
 permission
 pollable
 plugin_resources.c
@@ -134,6 +135,7 @@ unix-fd
 unix-streams
 vfs
 volumemonitor
+xdgconfighome
 xdgdatadir
 xdgdatahome
 xgen-gio
diff --git a/glib/tests/Makefile.am b/glib/tests/Makefile.am
index bdcd0cb..b987d3d 100644
--- a/glib/tests/Makefile.am
+++ b/glib/tests/Makefile.am
@@ -193,7 +193,7 @@ gtester-xmllint-check: # check testreport xml with xmllint if present
        ${GTESTER} -k --quiet -o tmpsample.xml --test-arg=--gtester-selftest ${GTESTER}
        ${XMLLINT} --version 2>/dev/null; test "$$?" != 0 || ${XMLLINT} --noout tmpsample.xml
 
-CLEANFILES += tmpsample.xml key_file_* out.xbel
+CLEANFILES += tmpsample.xml
 
 check-am: gtester-xmllint-check
 
diff --git a/glib/tests/bookmarkfile.c b/glib/tests/bookmarkfile.c
index 7c2f8d7..13bf7f5 100644
--- a/glib/tests/bookmarkfile.c
+++ b/glib/tests/bookmarkfile.c
@@ -63,6 +63,7 @@ test_to_file (void)
   res = g_file_get_contents ("out.xbel", &out, NULL, &error);
   g_assert (res);
   g_assert_no_error (error);
+  remove ("out.xbel");
 
   g_assert_cmpstr (in, ==, out);
   g_free (in);
diff --git a/glib/tests/fileutils.c b/glib/tests/fileutils.c
index fff4217..f133170 100644
--- a/glib/tests/fileutils.c
+++ b/glib/tests/fileutils.c
@@ -827,6 +827,7 @@ test_read_link (void)
   g_assert_null (path);
   g_error_free (error);
 
+  remove (newpath);
   g_free (cwd);
   g_free (newpath);
   g_free (badpath);
diff --git a/glib/tests/keyfile.c b/glib/tests/keyfile.c
index a0a0aa7..f6ef6ae 100644
--- a/glib/tests/keyfile.c
+++ b/glib/tests/keyfile.c
@@ -1396,6 +1396,7 @@ test_save (void)
   c = g_key_file_get_uint64 (kf2, "bees", "c", NULL);
   g_assert (c == G_GUINT64_CONSTANT (123456789123456789));
 
+  remove (file);
   g_free (file);
   g_key_file_free (kf);
   g_key_file_free (kf2);


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