mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: realpath: ensure realpath -s -e fails on a dangling symlink
Reported at https://github.com/uutils/coreutils/issues/15996 * tests/misc/realpath.sh: Add test case. Link: https://github.com/coreutils/coreutils/pull/432
This commit is contained in:
1 parent
cedefc7896
commit
566aeee281
1 file changed
+5
@@ -156,4 +156,9 @@ realpath -ms loop >out 2>err || fail=1
|
||||
compare exp out || fail=1
|
||||
compare /dev/null err || fail=1
|
||||
|
||||
# -e must check existence even when not resolving symlinks.
|
||||
ln -s missing dangling || framework_failure_
|
||||
returns_ 1 realpath --no-symlinks -e dangling > out 2> err || fail=1
|
||||
compare /dev/null out || fail=1
|
||||
|
||||
Exit $fail
|
||||
Reference in new issue
Block a user