diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-16 22:20:49 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-18 11:15:38 +0300 |
commit | b946e380d4e414cec85082ebe67c8ffed6579277 (patch) | |
tree | ba2fd4ffca5d66dfdd7d450dad98d37d03d0045a /tests/dir-iterator/testscript | |
parent | 12b450c33ddd804581a9212c7b88ccaa1d95b636 (diff) |
Add ignore_dangling parameter to dir_iterator() ctor
Diffstat (limited to 'tests/dir-iterator/testscript')
-rw-r--r-- | tests/dir-iterator/testscript | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/tests/dir-iterator/testscript b/tests/dir-iterator/testscript index 75a1ca6..f592c78 100644 --- a/tests/dir-iterator/testscript +++ b/tests/dir-iterator/testscript @@ -8,9 +8,24 @@ test.options = -v : mkdir a; touch a/b; -$* a 2>"reg b" +$* a >"reg b" : dir : mkdir -p a/b; -$* a 2>"dir b" +$* a >"dir b" + +: dangling-link +: +if ($cxx.target.class != 'windows') +{ + +mkdir a + +touch --no-cleanup a/b + +ln -s a/b a/l + +rm a/b + + +touch a/c + + $* ../a >! 2>! != 0 : keep + $* -i ../a >'reg c' : skip +} |