diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2018-07-21 17:26:24 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2018-07-21 17:31:09 +0200 |
commit | e4e7766e2f0baa9d69de61993200680afa914616 (patch) | |
tree | b9d1e6c51b435ecfd7fc9076999ef156eec44b92 | |
parent | 58cc6255576b1c436545293afbfaf0cb79578348 (diff) | |
download | tracker-e4e7766e2f0baa9d69de61993200680afa914616.tar.gz |
tests: Adapt TrackerFileNotifier tests to internal behavioral changewip/carlosg/direct-rewrite
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.
-rw-r--r-- | tests/libtracker-miner/tracker-file-notifier-test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libtracker-miner/tracker-file-notifier-test.c b/tests/libtracker-miner/tracker-file-notifier-test.c index fd8264467..1bdc16085 100644 --- a/tests/libtracker-miner/tracker-file-notifier-test.c +++ b/tests/libtracker-miner/tracker-file-notifier-test.c @@ -668,6 +668,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 } @@ -716,6 +717,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 }, |