t/lib-git-daemon: use test_match_signal
commit03c39b34589897824385c884cd9c5707ba93a238
authorJeff King <peff@peff.net>
Fri, 24 Jun 2016 19:45:12 +0000 (24 15:45 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jul 2016 14:44:25 +0000 (6 07:44 -0700)
treef035170cd3bc7cffa1afa58f7864b19e5abc00d9
parent2472448c88ad72bd7d02d473590d2c17c2cd7424
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>
t/lib-git-daemon.sh