summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-01-11 18:34:32 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-01-11 18:34:32 -0800
commitedb6ad5b0aa7152dc230c0e75f14fb41b8302db4 (patch)
tree4171bb3c75d9fa06a9f053a276869c64ccf302c3 /t
parentMerge branch 'jc/merge-blobs' (diff)
parentrun-command: encode signal death as a positive integer (diff)
downloadtgif-edb6ad5b0aa7152dc230c0e75f14fb41b8302db4.tar.xz
Merge branch 'jk/unify-exit-code-by-receiving-signal'
The internal logic had to deal with two representations of a death of a child process by a signal. * jk/unify-exit-code-by-receiving-signal: run-command: encode signal death as a positive integer
Diffstat (limited to 't')
-rwxr-xr-xt/test-terminal.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test-terminal.perl b/t/test-terminal.perl
index 10172aee18..1fb373f25b 100755
--- a/t/test-terminal.perl
+++ b/t/test-terminal.perl
@@ -31,7 +31,7 @@ sub finish_child {
} elsif ($? & 127) {
my $code = $? & 127;
warn "died of signal $code";
- return $code - 128;
+ return $code + 128;
} else {
return $? >> 8;
}