diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-03-21 19:16:17 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-03-25 23:49:02 +0000 |
commit | fc286a7c11aa767cab203f1fe111133eac9056fa (patch) | |
tree | 8433ad019e8a590b3ba680f4977ef4afe14c345e /Test | |
parent | dabfd1f1fbab2b6543f541488c73bdc28230f43f (diff) | |
download | zsh-fc286a7c11aa767cab203f1fe111133eac9056fa.tar.gz zsh-fc286a7c11aa767cab203f1fe111133eac9056fa.tar.xz zsh-fc286a7c11aa767cab203f1fe111133eac9056fa.zip |
45583/0008: Extend tests to prove that what remains of xsymlinks() handles symlink loops gracefully.
Diffstat (limited to 'Test')
-rw-r--r-- | Test/B13whence.ztst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/B13whence.ztst b/Test/B13whence.ztst index b22363980..ea0a4dae5 100644 --- a/Test/B13whence.ztst +++ b/Test/B13whence.ztst @@ -5,6 +5,9 @@ ln -s real step3 ln -s step3 step2 ln -s step2 step1 + ln -s loop loop + ln -s flip flop + ln -s flop flip touch real chmod +x real prefix=$PWD @@ -20,3 +23,9 @@ 0q:whence symlink resolution >$prefix/step1 -> $prefix/step2 -> $prefix/step3 -> $prefix/real >$prefix/step1 -> $prefix/real + + ( + path=( $PWD/whence.tmp $path ) + whence -S flip || whence -S loop || whence -s flip || whence -s loop + ) +1:whence deals with symlink loops gracefully |