From 0d2c11249ea377c7d1ba5327e05a5159d209e2fe Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 14 Feb 2020 20:09:07 +0100 Subject: [PATCH] Ignore unreadable cwd error harder Should fix the tests on macOS. --- tests/checks/init-unreadable-cwd.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/checks/init-unreadable-cwd.fish b/tests/checks/init-unreadable-cwd.fish index b1701724a..c30843a22 100644 --- a/tests/checks/init-unreadable-cwd.fish +++ b/tests/checks/init-unreadable-cwd.fish @@ -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