diff options
author | Johannes Sixt <j6t@kdbg.org> | 2013-06-06 08:34:41 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-06 10:22:52 -0700 |
commit | 04422c74c88e2d5d78210bad65e95b223a18fd8e (patch) | |
tree | 27baf3180dfd8c2306f602b446102e582376f181 /git-submodule.sh | |
parent | t0005: test git exit code from signal death (diff) | |
download | tgif-04422c74c88e2d5d78210bad65e95b223a18fd8e.tar.xz |
t0005: skip signal death exit code test on Windows
The test case depends on that test-sigchain can commit suicide by a
call to raise(SIGTERM) in a way that run-command.c::wait_or_whine()
can detect as death through a signal. There are no POSIX signals on
Windows, and a sufficiently close emulation is not available in the
Microsoft C runtime (and probably not even possible).
The particular deficiency is that when a signal is raise()d whose
SIG_DFL action will cause process death (SIGTERM in this case), the
implementation of raise() in msvcrt just calls exit(3).
We could check for exit code 3 in addition to 143, but that would
miss the point of the test entirely. Hence, just skip it on Windows.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-submodule.sh')
0 files changed, 0 insertions, 0 deletions