tests: notice valgrind error in test_must_fail
[gitweb.git] / t / test-lib-functions.sh
index fa62d010f68e3ee97e6754687ad4d08564d3c96b..6766553c31ff88e391e179c664756f908e74f4e4 100644 (file)
@@ -536,6 +536,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
 }