Let test for unreadable cwd work on macos

It has a different error. We don't care, we expect an error.

(cherry picked from commit 7c879ed356)
This commit is contained in:
Fabian Homborg 2020-02-14 18:34:07 +01:00
parent 118f5e4485
commit 0d18fec890

View file

@ -10,7 +10,7 @@ cd $tmpdir
chmod 000 .
$fish -c 'echo Look Ma! No crashing!'
#CHECK: Look Ma! No crashing!
#CHECKERR: Unable to open the current working directory: Permission denied
#CHECKERR: {{.*}}
# Careful here, Solaris' rm tests if the directory is in $PWD, so we need to cd back
cd $oldpwd