Commit 5ad98d1f authored by Christian Hergert's avatar Christian Hergert
Browse files

tests: improve reaper test for path checks

parent 49d6f7dd
......@@ -87,10 +87,15 @@ test_reaper_basic (void)
/* also create link to out-of-tree to ensure we don't follow
* symlinks and delete files there.
*/
g_assert_cmpint (0, ==, symlink ("out-of-tree", "reaper/symlink-check"));
g_assert_cmpint (0, ==, symlink ("../out-of-tree", "reaper/symlink-check"));
g_assert_true (g_file_test ("reaper/symlink-check", G_FILE_TEST_IS_SYMLINK));
g_assert_true (g_file_test ("reaper/symlink-check", G_FILE_TEST_EXISTS));
g_assert_true (g_file_test ("out-of-tree/delete-check", G_FILE_TEST_IS_REGULAR));
g_assert_cmpint (0, ==, symlink ("../../../out-of-tree", "reaper/a/b/d"));
g_assert_true (g_file_test ("reaper/a/b/d", G_FILE_TEST_IS_SYMLINK));
g_assert_true (g_file_test ("reaper/a/b/d", G_FILE_TEST_EXISTS));
dzl_directory_reaper_add_directory (reaper, file, 0);
r = dzl_directory_reaper_execute (reaper, NULL, &error);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment