aboutsummaryrefslogtreecommitdiff
path: root/tests/dir-iterator/testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-02-14 15:20:36 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-02-15 13:28:46 +0300
commit3c3b18efe6b9fc6f51d16c9569ca1e150adeaf76 (patch)
treeda5a01f5084ce8511f722fb08c3c57bf5ec9b5e3 /tests/dir-iterator/testscript
parentaf98c733afe67e10ca87801b9bd05a2dfa1d3950 (diff)
Fix directory symlinks support on Windows
Diffstat (limited to 'tests/dir-iterator/testscript')
-rw-r--r--tests/dir-iterator/testscript18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/dir-iterator/testscript b/tests/dir-iterator/testscript
index 5169e9b..956eacb 100644
--- a/tests/dir-iterator/testscript
+++ b/tests/dir-iterator/testscript
@@ -15,6 +15,9 @@ $* a >"reg b"
mkdir -p a/b;
$* a >"dir b"
+# Note that on Windows only directory symlinks are currently supported (see
+# mksymlink() for details).
+#
: dangling-link
:
if ($cxx.target.class != 'windows')
@@ -29,3 +32,18 @@ if ($cxx.target.class != 'windows')
$* ../a >! 2>! != 0 : keep
$* -i ../a >'reg c' : skip
}
+else
+{
+ +mkdir a
+ +mkdir --no-cleanup a/b
+ +ln -s a/b a/l
+ +rmdir a/b
+
+ +touch a/c
+
+ # On Wine dangling symlinks are not visible (see mksymlink() for details).
+ #
+ #$* ../a >! 2>! != 0 : keep
+
+ $* -i ../a >'reg c' : skip
+}