mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 15:01:16 -03:00
Disable cwd-error-reporting test on Windows
On Windows, "chmod 000 .; cd ." doesn't fail, so disable this test case on Windows. On the Windows CI runner, "uname" prints "MINGW64_NT-10.0-26100" so we can't use "__fish_is_cygwin".
This commit is contained in:
@@ -13,7 +13,10 @@ $fish -c 'echo Look Ma! No crashing!' 2>/dev/null
|
||||
#CHECK: Look Ma! No crashing!
|
||||
|
||||
# Verify fish reports the unreadable cwd on stderr instead of silently leaving cwd_fd unset.
|
||||
$fish -c 'true' 2>&1 1>/dev/null | string match -q '*Unable to open the current working directory*'
|
||||
{
|
||||
$fish -c 'true' 2>&1 1>/dev/null | string match -q '*Unable to open the current working directory*'
|
||||
or status build-info | grep '^Target.*-cygwin$'
|
||||
}
|
||||
and echo "cwd error reported"
|
||||
#CHECK: cwd error reported
|
||||
|
||||
|
||||
Reference in New Issue
Block a user