From: Pádraig Brady
Date: Thu, 16 Sep 2021 23:17:03 +0000 (+0100) Subject: tests: port removed-directory test to FreeBSD X-Git-Tag: v9.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5134612fa78012d8a8efeca181d1a9355d1fc67f;p=thirdparty%2Fcoreutils.git tests: port removed-directory test to FreeBSD * tests/ls/removed-directory.sh: On FreeBSD 9.1 at least, one gets ENOENT when trying to traverse the current removed dir with ../, so instead reference the parent dir directly. --- diff --git a/tests/ls/removed-directory.sh b/tests/ls/removed-directory.sh index 5298c49abb..aaabdcf71e 100755 --- a/tests/ls/removed-directory.sh +++ b/tests/ls/removed-directory.sh @@ -29,7 +29,7 @@ rmdir ../d || skip_ "can't remove working directory on this platform" # On NFS, 'ls' would run into the error "Stale file handle". test -d . || skip_ "can't examine removed working directory on this platform" -ls >../out 2>../err || fail=1 +ls >"$cwd"/out 2>"$cwd"/err || fail=1 cd "$cwd" || framework_failure_ compare /dev/null out || fail=1