summaryrefslogtreecommitdiff
path: root/Test/D02glob.ztst
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2020-03-21 18:45:35 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-03-25 23:49:02 +0000
commit47fc5fe01fa315c38335739beb6102e103a80702 (patch)
tree9bf4ec46c2ff8e225bab2448bbe07849f49606de /Test/D02glob.ztst
parent12414d80523ed73a15c495b3a2f95c23ab61b2b8 (diff)
downloadzsh-47fc5fe01fa315c38335739beb6102e103a80702.tar.gz
zsh-47fc5fe01fa315c38335739beb6102e103a80702.zip
45583/0004: Fix segfault on resolving symlink loops
Diffstat (limited to 'Test/D02glob.ztst')
-rw-r--r--Test/D02glob.ztst11
1 files changed, 5 insertions, 6 deletions
diff --git a/Test/D02glob.ztst b/Test/D02glob.ztst
index 248cc7ff5..041784310 100644
--- a/Test/D02glob.ztst
+++ b/Test/D02glob.ztst
@@ -690,10 +690,9 @@
# This is a bit brittle as it depends on PATH_MAX.
# We could use sysconf..
bad_pwd="/${(l:16000:: :):-}"
- print ${bad_pwd:P}
+ print ${bad_pwd:P} | wc -c
0:modifier ':P' with path too long
-?(eval):4: path expansion failed, using root directory
->/
+>16002
foo=a
value="ac"
@@ -765,7 +764,7 @@
} always {
rm -f glob.tmp/trap glob.tmp/loop
}
--f:the ':P' modifier handles symlink loops in the last path component
+0:the ':P' modifier handles symlink loops in the last path component
*>*/(trap|loop)
*>*/(trap|loop)
@@ -777,7 +776,7 @@
} always {
rm -f glob.tmp/trap glob.tmp/loop
}
--f:the ':P' modifier handles symlink loops before the last path component
+0:the ':P' modifier handles symlink loops before the last path component
*>*/glob.tmp/loop/trailing/components
*>*/glob.tmp/(loop|trap)/trailing/components
@@ -789,7 +788,7 @@
} always {
rm -f glob.tmp/flip glob.tmp/flop
}
--f:the ':P' modifier handles symlink loops other than the trivial case
+0:the ':P' modifier handles symlink loops other than the trivial case
*>*/glob.tmp/(flip|flop)
*>*/glob.tmp/(flip|flop)/trailing/components