From: Adam Dinwoodie Date: Thu, 15 Sep 2022 07:57:17 +0000 (+0100) Subject: t1800: correct test to handle Cygwin X-Git-Tag: v2.38.0-rc1~13^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=255a6f91ae4600ee2d257670477caf97b7986470;p=thirdparty%2Fgit.git t1800: correct test to handle Cygwin On Cygwin, when failing to spawn a process using start_command, Git outputs the same error as on Linux systems, rather than using the GIT_WINDOWS_NATIVE-specific error output. The WINDOWS test prerequisite is set in both Cygwin and native Windows environments, which means it's not appropriate to use to anticipate the error output from start_command. Instead, use the MINGW test prerequisite, which is only set for Git in native Windows environments, and not for Cygwin. Signed-off-by: Adam Dinwoodie Helped-by: Đoàn Trần Công Danh Signed-off-by: Junio C Hamano --- diff --git a/t/t1800-hook.sh b/t/t1800-hook.sh index 64096adac7..43fcb7c0bf 100755 --- a/t/t1800-hook.sh +++ b/t/t1800-hook.sh @@ -157,9 +157,9 @@ test_expect_success 'git hook run a hook with a bad shebang' ' write_script bad-hooks/test-hook "/bad/path/no/spaces" expect <<-\EOF fatal: cannot run bad-hooks/test-hook: ...