[epiphany/mcatanzaro/tests-tmp-leftovers: 1/3] gsb-service-test: Don't pollute /tmp



commit 5a24e01405a4a3d7cfe81e40f1e9e5260bf1faf9
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Tue Jan 8 19:07:46 2019 -0600

    gsb-service-test: Don't pollute /tmp
    
    Clean up our test gsb db instead of leaving it under /tmp.

 tests/ephy-gsb-service-test.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/tests/ephy-gsb-service-test.c b/tests/ephy-gsb-service-test.c
index 41c05eda2..ce78581c6 100644
--- a/tests/ephy-gsb-service-test.c
+++ b/tests/ephy-gsb-service-test.c
@@ -246,6 +246,8 @@ test_ephy_gsb_service_verify_url (void)
   test_verify_url_loop = g_main_loop_new (NULL, FALSE);
   g_main_loop_run (test_verify_url_loop);
 
+  g_assert_cmpint (g_unlink (db_path), ==, 0);
+
   g_free (db_path);
   g_object_unref (service);
   g_main_loop_unref (test_verify_url_loop);


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