From 17ef326c8ffb11bc9942b4f6674e5d0173b208ef Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Thu, 28 May 2026 16:38:09 +0800 Subject: [PATCH] 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". --- tests/checks/init-unreadable-cwd.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/checks/init-unreadable-cwd.fish b/tests/checks/init-unreadable-cwd.fish index 8c9e69dc1..9655c8395 100644 --- a/tests/checks/init-unreadable-cwd.fish +++ b/tests/checks/init-unreadable-cwd.fish @@ -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