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:
Johannes Altmanninger
2026-05-28 16:38:09 +08:00
parent 9a56334292
commit 17ef326c8f

View File

@@ -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