mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
Ignore unreadable cwd error harder
Should fix the tests on macOS.
This commit is contained in:
parent
f053cd27c6
commit
0d2c11249e
1 changed files with 2 additions and 2 deletions
|
@ -8,9 +8,9 @@ set -l tmpdir (mktemp -d)
|
||||||
set -l fish (builtin realpath $fish)
|
set -l fish (builtin realpath $fish)
|
||||||
cd $tmpdir
|
cd $tmpdir
|
||||||
chmod 000 .
|
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!
|
#CHECK: Look Ma! No crashing!
|
||||||
#CHECKERR: {{.*}}
|
|
||||||
|
|
||||||
# Careful here, Solaris' rm tests if the directory is in $PWD, so we need to cd back
|
# Careful here, Solaris' rm tests if the directory is in $PWD, so we need to cd back
|
||||||
cd $oldpwd
|
cd $oldpwd
|
||||||
|
|
Loading…
Reference in a new issue