From 5134612fa78012d8a8efeca181d1a9355d1fc67f Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Fri, 17 Sep 2021 00:17:03 +0100 Subject: [PATCH] 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. --- tests/ls/removed-directory.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2