aboutsummaryrefslogtreecommitdiff
path: root/tests/dir-iterator/testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-02-16 00:05:47 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-02-16 11:49:25 +0300
commitcc8c13b8435f34ef8901bb968c6998587ba9a19b (patch)
treecbb080a33af32aecfa753c7ad92dc738dff2daef /tests/dir-iterator/testscript
parent39ce51acd1a187891d9951e8ae5460f9b6f4603c (diff)
Fix non-detecting dangling junctions if built with mingw gcc
Diffstat (limited to 'tests/dir-iterator/testscript')
-rw-r--r--tests/dir-iterator/testscript13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/dir-iterator/testscript b/tests/dir-iterator/testscript
index 956eacb..370fd2f 100644
--- a/tests/dir-iterator/testscript
+++ b/tests/dir-iterator/testscript
@@ -36,14 +36,21 @@ else
{
+mkdir a
+mkdir --no-cleanup a/b
- +ln -s a/b a/l
+ +ln -s a/b a/bl
+rmdir a/b
+touch a/c
+ +mkdir a/d
+ +ln -s a/d a/dl
+
# On Wine dangling symlinks are not visible (see mksymlink() for details).
#
- #$* ../a >! 2>! != 0 : keep
+ #$* ../a >! 2>! != 0 : keep
- $* -i ../a >'reg c' : skip
+ : skip
+ :
+ $* -i ../a >>~%EOO%
+ %(reg c|dir d|sym dir dl)%{3}
+ EOO
}