[tracker] tests: Fix TrackerFileNotifier tests teardown



commit dbc3445c40a9caafc1e3b4e8ce4665b1cfcdb861
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Sep 9 13:07:21 2018 +0200

    tests: Fix TrackerFileNotifier tests teardown
    
    Be a little bit more polite and delete the folder after closing the
    connection. Prevents warnings (and test failures) on its finalize
    paths.

 tests/libtracker-miner/tracker-file-notifier-test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/libtracker-miner/tracker-file-notifier-test.c 
b/tests/libtracker-miner/tracker-file-notifier-test.c
index 1bdc16085..00da7c7bf 100644
--- a/tests/libtracker-miner/tracker-file-notifier-test.c
+++ b/tests/libtracker-miner/tracker-file-notifier-test.c
@@ -306,8 +306,6 @@ static void
 test_common_context_teardown (TestCommonContext *fixture,
                               gconstpointer      data)
 {
-       DELETE_FOLDER (fixture, NULL);
-
        g_list_foreach (fixture->ops, (GFunc) filesystem_operation_free, NULL);
        g_list_free (fixture->ops);
 
@@ -328,6 +326,8 @@ test_common_context_teardown (TestCommonContext *fixture,
        }
 
        g_clear_object (&fixture->connection);
+
+       DELETE_FOLDER (fixture, NULL);
 }
 
 static gboolean


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