summaryrefslogtreecommitdiff
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-04-03 09:34:44 -0700
committerJunio C Hamano <gitster@pobox.com>2013-04-03 09:34:44 -0700
commitd3ea5826e4d27dea7bebf3b3029d183ddf31567a (patch)
tree53f85ad3cb8f9f3bb1be95c32c73d92d83f5d322 /t/test-lib-functions.sh
parent5ab3e4c1b2db00d813b548053f3b96d57d035dd7 (diff)
parenteeb69131ed7f3cb7a191d5bf0e3ce8fdd726a539 (diff)
downloadgit-d3ea5826e4d27dea7bebf3b3029d183ddf31567a.tar.gz
Merge branch 'tr/valgrind'
Let us use not just memgrind but other *grind debuggers. * tr/valgrind: tests: notice valgrind error in test_must_fail tests --valgrind: provide a mode without --track-origins tests: parameterize --valgrind option t/README: --valgrind already implies -v
Diffstat (limited to 't/test-lib-functions.sh')
-rw-r--r--t/test-lib-functions.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index 42c2258b4f..52510094ad 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -540,6 +540,9 @@ test_must_fail () {
elif test $exit_code = 127; then
echo >&2 "test_must_fail: command not found: $*"
return 1
+ elif test $exit_code = 126; then
+ echo >&2 "test_must_fail: valgrind error: $*"
+ return 1
fi
return 0
}