[tracker-miners/wip/carlosg/shuffle-libtracker-miner: 69/116] tests: Adapt TrackerFileNotifier tests to internal behavioral change
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/shuffle-libtracker-miner: 69/116] tests: Adapt TrackerFileNotifier tests to internal behavioral change
- Date: Thu, 12 Dec 2019 10:21:54 +0000 (UTC)
commit aa9da137233c749bf3c63e07d0a18af5e10784df
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Jul 21 17:26:24 2018 +0200
tests: Adapt TrackerFileNotifier tests to internal behavioral change
Before commit 68381c1dd, ensure_parents() would stop before the indexing
root in the assumption that it was already notified upon, that commit made
it so those folders are ensured to be notified too.
This internal behavioral change is normally evened out by TrackerMinerFS,
but shows at the tests for the internal TrackerFileNotifier object as
there is nothing there to set the IRI for those files.
tests/libtracker-miner/tracker-file-notifier-test.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/tests/libtracker-miner/tracker-file-notifier-test.c
b/tests/libtracker-miner/tracker-file-notifier-test.c
index c2737d148..85507bf8f 100644
--- a/tests/libtracker-miner/tracker-file-notifier-test.c
+++ b/tests/libtracker-miner/tracker-file-notifier-test.c
@@ -667,6 +667,7 @@ test_file_notifier_monitor_updates_non_recursive (TestCommonContext *fixture,
{ OPERATION_CREATE, "non-recursive/bbb", NULL }
};
FilesystemOperation expected_results2[] = {
+ { OPERATION_CREATE, "non-recursive", NULL },
{ OPERATION_UPDATE, "non-recursive/bbb", NULL },
{ OPERATION_CREATE, "non-recursive/ccc", NULL },
{ OPERATION_UPDATE, "non-recursive/ccc", NULL }
@@ -715,6 +716,7 @@ test_file_notifier_monitor_updates_recursive (TestCommonContext *fixture,
{ OPERATION_CREATE, "recursive/bbb", NULL }
};
FilesystemOperation expected_results2[] = {
+ { OPERATION_CREATE, "recursive", NULL },
{ OPERATION_CREATE, "recursive/folder", NULL },
{ OPERATION_CREATE, "recursive/folder/aaa", NULL },
{ OPERATION_UPDATE, "recursive/bbb", NULL },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]