diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/ln/relative.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ln/relative.sh b/tests/ln/relative.sh index 7636695ce..5cf280a58 100755 --- a/tests/ln/relative.sh +++ b/tests/ln/relative.sh @@ -45,4 +45,9 @@ mkdir web ln -sr latest web/latest test $(readlink web/latest) = '../release2' || fail=1 +# Expect this to fail with exit status 1, or to succeed quietly (freebsd). +# Prior to coreutils-8.23, it would segfault. +ln -sr '' F +case $? in [01]) ;; *) fail=1;; esac + Exit $fail |