diff options
author | António Fernandes <antoniof@gnome.org> | 2022-05-31 19:03:42 +0100 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-05-31 19:03:42 +0100 |
commit | 7a2b3e21419533c6e87799bf84e2c3d6b6376b11 (patch) | |
tree | 5ab969328b4cf0267b0a6f2f36aaa56f2a6b3773 /test | |
parent | 0ab090ec713b89cb8effed0bf4bb24405fb6980b (diff) | |
download | nautilus-7a2b3e21419533c6e87799bf84e2c3d6b6376b11.tar.gz |
tag-manager: Skip tracker initialization in tests
Fixes test failures introduced by df78c517516cec20892f2a108df47613153ddf5b
Before that commit, we used to fully initiate the tag manager only from
NautilusApplication, because the tests didn't call set_cancellable().
Now that initialization is completed on construction, add a constructor
which skips the part of initialization that the tests don't need.
Diffstat (limited to 'test')
3 files changed, 3 insertions, 3 deletions
diff --git a/test/automated/displayless/test-file-operations-copy-files.c b/test/automated/displayless/test-file-operations-copy-files.c index 601b0090d..09e79a479 100644 --- a/test/automated/displayless/test-file-operations-copy-files.c +++ b/test/automated/displayless/test-file-operations-copy-files.c @@ -1309,7 +1309,7 @@ main (int argc, int ret; undo_manager = nautilus_file_undo_manager_new (); - tag_manager = nautilus_tag_manager_new (); + tag_manager = nautilus_tag_manager_new_dummy (); g_test_init (&argc, &argv, NULL); g_test_set_nonfatal_assertions (); nautilus_ensure_extension_points (); diff --git a/test/automated/displayless/test-file-operations-move-files.c b/test/automated/displayless/test-file-operations-move-files.c index fc528c486..43757c609 100644 --- a/test/automated/displayless/test-file-operations-move-files.c +++ b/test/automated/displayless/test-file-operations-move-files.c @@ -1940,7 +1940,7 @@ main (int argc, int ret; undo_manager = nautilus_file_undo_manager_new (); - tag_manager = nautilus_tag_manager_new (); + tag_manager = nautilus_tag_manager_new_dummy (); g_test_init (&argc, &argv, NULL); g_test_set_nonfatal_assertions (); nautilus_ensure_extension_points (); diff --git a/test/automated/displayless/test-file-operations-trash-or-delete.c b/test/automated/displayless/test-file-operations-trash-or-delete.c index 7f9934375..f0c5eb12e 100644 --- a/test/automated/displayless/test-file-operations-trash-or-delete.c +++ b/test/automated/displayless/test-file-operations-trash-or-delete.c @@ -578,7 +578,7 @@ main (int argc, g_test_set_nonfatal_assertions (); nautilus_ensure_extension_points (); undo_manager = nautilus_file_undo_manager_new (); - tag_manager = nautilus_tag_manager_new (); + tag_manager = nautilus_tag_manager_new_dummy (); setup_test_suite (); |