Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Binyamin Darshan Hcohen
libdazzle
Commits
5ad98d1f
Commit
5ad98d1f
authored
Aug 03, 2018
by
Christian Hergert
Browse files
tests: improve reaper test for path checks
parent
49d6f7dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test-directory-reaper.c
View file @
5ad98d1f
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment