]> git.ipfire.org Git - thirdparty/git.git/commit - t/test-lib-functions.sh
test_must_fail: use test_match_signal
authorJeff King <peff@peff.net>
Fri, 24 Jun 2016 19:45:04 +0000 (15:45 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jul 2016 14:44:25 +0000 (07:44 -0700)
commit2472448c88ad72bd7d02d473590d2c17c2cd7424
treeb4de83ade1b6a241cc0bb081c3d4c996c6138b52
parent6f5f9d747690b91e212c91138ae9efd1bfbfbb7d
test_must_fail: use test_match_signal

In 8bf4bec (add "ok=sigpipe" to test_must_fail and use it to
fix flaky tests, 2015-11-27), test_must_fail learned to
recognize "141" as a sigpipe failure. However, testing for
a signal is more complicated than that; we should use
test_match_signal to implement more portable checking.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-functions.sh