[tracker-miners/wip/carlosg/shuffle-libtracker-miner: 77/116] tests: Fix TrackerFileNotifier tests teardown
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/shuffle-libtracker-miner: 77/116] tests: Fix TrackerFileNotifier tests teardown
- Date: Thu, 12 Dec 2019 12:12:58 +0000 (UTC)
commit 27946d8d81cee5f01d045c6249acae5d5e72b8db
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 85507bf8f..ff6e52f32 100644
--- a/tests/libtracker-miner/tracker-file-notifier-test.c
+++ b/tests/libtracker-miner/tracker-file-notifier-test.c
@@ -305,8 +305,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);
@@ -327,6 +325,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]