diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2018-09-09 13:07:21 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2018-09-09 13:24:07 +0200 |
commit | dbc3445c40a9caafc1e3b4e8ce4665b1cfcdb861 (patch) | |
tree | 10a309904ea40f810c200f8cbaecd58a5891ea7e | |
parent | 7d279178fc0045948ba7209b317f305926cf7c03 (diff) | |
download | tracker-dbc3445c40a9caafc1e3b4e8ce4665b1cfcdb861.tar.gz |
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.
-rw-r--r-- | tests/libtracker-miner/tracker-file-notifier-test.c | 4 |
1 files 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 |