]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: port removed-directory test to FreeBSD
authorPádraig Brady <P@draigBrady.com>
Thu, 16 Sep 2021 23:17:03 +0000 (00:17 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 16 Sep 2021 23:18:03 +0000 (00:18 +0100)
* 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.

tests/ls/removed-directory.sh

index 5298c49abb61d2cd6b596c910cab0c008d34b755..aaabdcf71e61c8b3ea2e0cabc195445c85dfab43 100755 (executable)
@@ -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