summaryrefslogtreecommitdiff
path: root/t/t0005-signals.sh
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2014-09-22 20:24:34 +0200
committerJunio C Hamano <gitster@pobox.com>2014-09-22 13:41:52 -0700
commit4e6d207c45e6f5c13b38c4a200f0d3339f88ad34 (patch)
treeb181deb0b1e7fc50fc90d785e2491cf387761844 /t/t0005-signals.sh
parent7559a1be8a0afb10df41d25e4cf4c5285a5faef1 (diff)
downloadgit-4e6d207c45e6f5c13b38c4a200f0d3339f88ad34.tar.gz
mingw.h: add dummy functions for sigset_t operationspr/use-default-sigpipe-setting
Windows does not have POSIX-like signals, and so we ignore all operations on the non-existent signal mask machinery. Do not turn sigemptyset into a function, but leave it a macro that erases the code in the argument because it is used to set sa_mask of a struct sigaction, but our dummy in mingw.h does not have that member. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0005-signals.sh')
-rwxr-xr-xt/t0005-signals.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t0005-signals.sh b/t/t0005-signals.sh
index 638a355906..aeea50c633 100755
--- a/t/t0005-signals.sh
+++ b/t/t0005-signals.sh
@@ -39,12 +39,12 @@ test_expect_success 'create blob' '
git add file
'
-test_expect_success 'a constipated git dies with SIGPIPE' '
+test_expect_success !MINGW 'a constipated git dies with SIGPIPE' '
OUT=$( ((large_git; echo $? 1>&3) | :) 3>&1 )
test "$OUT" -eq 141
'
-test_expect_success 'a constipated git dies with SIGPIPE even if parent ignores it' '
+test_expect_success !MINGW 'a constipated git dies with SIGPIPE even if parent ignores it' '
OUT=$( ((trap "" PIPE; large_git; echo $? 1>&3) | :) 3>&1 )
test "$OUT" -eq 141
'