t/lib-git-daemon: use test_match_signal

When git-daemon exits, we expect it to be with the SIGTERM we just sent it. If we see anything else, we'll complain. But our check against exit code "143" is not portable. For example: $ ksh93 t5570-git-daemon.sh [...] error: git daemon exited with status: 271 We can fix this by using test_match_signal. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Jun 24, 2016 at 15:45 UTC 03c39b34589897824385c884cd9c5707ba93a238
1 file changed +1 -2
t/lib-git-daemon.sh
+1 -2
@@ -82,8 +82,7 @@ stop_git_daemon() {
82 kill "$GIT_DAEMON_PID"
83 wait "$GIT_DAEMON_PID" >&3 2>&4
84 ret=$?
85 - # expect exit with status 143 = 128+15 for signal TERM=15
86 - if test $ret -ne 143
85 + if test_match_signal 15 $?
86 then
87 error "git daemon exited with status: $ret"
88 fi