tests: notice valgrind error in test_must_fail
commiteeb69131ed7f3cb7a191d5bf0e3ce8fdd726a539
authorThomas Rast <trast@inf.ethz.ch>
Sun, 31 Mar 2013 08:37:25 +0000 (31 10:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Apr 2013 14:45:45 +0000 (1 07:45 -0700)
tree4be4bdf8bd11633da400b7b2b95efee2c793858b
parent95d9d5ec75d3549f00cac29cd33be899cfb4693a
tests: notice valgrind error in test_must_fail

We tell valgrind to return 126 if it notices that something is wrong,
but we did not actually handle this in test_must_fail, leading to
false negatives.  Catch and report it.

Signed-off-by: Thomas Rast <trast@inf.ethz.ch>
Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-functions.sh