test: trivial cleanups
[gitweb.git] / t / test-lib-functions.sh
index 42c2258b4fdf37b9d2e440f0918f8e4e4f7608f0..52510094add59b508e1581ffebfa555e7249561c 100644 (file)
@@ -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
 }