mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
Ignore unreadable cwd error harder
Should fix the tests on macOS. (cherry picked from commit 0d2c11249ea377c7d1ba5327e05a5159d209e2fe)
This commit is contained in:
parent
0d18fec890
commit
904d16f517
@ -8,9 +8,9 @@ set -l tmpdir (mktemp -d)
|
||||
set -l fish (builtin realpath $fish)
|
||||
cd $tmpdir
|
||||
chmod 000 .
|
||||
$fish -c 'echo Look Ma! No crashing!'
|
||||
# There's an error, but we don't really care about the specific one.
|
||||
$fish -c 'echo Look Ma! No crashing!' 2>/dev/null
|
||||
#CHECK: Look Ma! No crashing!
|
||||
#CHECKERR: {{.*}}
|
||||
|
||||
# Careful here, Solaris' rm tests if the directory is in $PWD, so we need to cd back
|
||||
cd $oldpwd
|
||||
|
Loading…
x
Reference in New Issue
Block a user