aboutsummaryrefslogtreecommitdiff
path: root/lib/io/test/dir_tree_iterator3.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-09-09 00:31:05 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-09-09 00:31:05 +0200
commit7f2fc2fc3942cfb47bd532b787c5c32ecfe45bcd (patch)
tree90910aaba1ede8b612217d0695f7d7b11b57c749 /lib/io/test/dir_tree_iterator3.c
parent8b5a2d64fa95cb964540b950ca237545d9e51822 (diff)
Fix: set no-hardlink flag for dir tree scanner test programs
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/io/test/dir_tree_iterator3.c')
-rw-r--r--lib/io/test/dir_tree_iterator3.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/io/test/dir_tree_iterator3.c b/lib/io/test/dir_tree_iterator3.c
index 4ac947c..ccb6bdb 100644
--- a/lib/io/test/dir_tree_iterator3.c
+++ b/lib/io/test/dir_tree_iterator3.c
@@ -32,6 +32,7 @@ int main(int argc, char **argv)
/********** match name **********/
memset(&cfg, 0, sizeof(cfg));
cfg.name_pattern = "file_x*";
+ cfg.flags = DIR_SCAN_NO_HARDLINKS;
dir = dir_tree_iterator_create(TEST_PATH, &cfg);
TEST_NOT_NULL(dir);
@@ -68,7 +69,7 @@ int main(int argc, char **argv)
/********** match path **********/
memset(&cfg, 0, sizeof(cfg));
cfg.name_pattern = "dir*/file_*0";
- cfg.flags |= DIR_SCAN_MATCH_FULL_PATH;
+ cfg.flags |= DIR_SCAN_MATCH_FULL_PATH | DIR_SCAN_NO_HARDLINKS;
dir = dir_tree_iterator_create(TEST_PATH, &cfg);
TEST_NOT_NULL(dir);