t7502-commit: Skip SIGTERM test on Windows
The implementation of exec on Windows is just a rough approximation of the POSIX behavior. In particular, no real process "overlay" happens (a new process is spawned instead and the parent process waits until the child terminates). In particular, the process ID cannot be taken by the exec'd process. But there is one test in t7502-commit.sh that depends on this. We have to skip it on Windows. Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Johannes Sixt committed
Mar 25, 2009 at 13:21 UTC
fb9a2beab2002894fb970cba4e32ebb1c41176b2
2 files changed
+3
-1
t/t7502-commit.sh
+1
-1
@@ -234,7 +234,7 @@ cat >.git/FAKE_EDITOR <<EOF
234
# kill -TERM command added below.
235
EOF
236
237
-test_expect_success 'a SIGTERM should break locks' '
237
+test_expect_success EXECKEEPSPID 'a SIGTERM should break locks' '
238
echo >>negative &&
239
! "$SHELL_PATH" -c '\''
240
echo kill -TERM $$ >> .git/FAKE_EDITOR
t/test-lib.sh
+2
@@ -689,10 +689,12 @@ case $(uname -s) in
689
}
690
# no POSIX permissions
691
# backslashes in pathspec are converted to '/'
692
+ # exec does not inherit the PID
693
;;
694
*)
695
test_set_prereq POSIXPERM
696
test_set_prereq BSLASHPSPEC
697
+ test_set_prereq EXECKEEPSPID
698
;;
699
esac
700