mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-10-01 05:23:56 +00:00
test/file-operations-trash: Remove useless check
There's no point in checking if a child of a non-existent file doesn't exist.
This commit is contained in:
parent
0ddd7a12c6
commit
e83a8ca0a5
|
@ -378,11 +378,6 @@ test_trash_third_hierarchy (void)
|
|||
directory = g_file_get_child (root, file_name);
|
||||
g_free (file_name);
|
||||
g_assert_false (g_file_query_exists (directory, NULL));
|
||||
|
||||
file_name = g_strdup_printf ("trash_or_delete_file_%i", i);
|
||||
file = g_file_get_child (directory, file_name);
|
||||
g_free (file_name);
|
||||
g_assert_false (g_file_query_exists (file, NULL));
|
||||
}
|
||||
|
||||
empty_directory_by_prefix (root, "trash_or_delete");
|
||||
|
@ -487,11 +482,6 @@ test_delete_third_hierarchy (void)
|
|||
directory = g_file_get_child (root, file_name);
|
||||
g_free (file_name);
|
||||
g_assert_false (g_file_query_exists (directory, NULL));
|
||||
|
||||
file_name = g_strdup_printf ("trash_or_delete_file_%i", i);
|
||||
file = g_file_get_child (directory, file_name);
|
||||
g_free (file_name);
|
||||
g_assert_false (g_file_query_exists (file, NULL));
|
||||
}
|
||||
|
||||
empty_directory_by_prefix (root, "trash_or_delete");
|
||||
|
|
Loading…
Reference in a new issue