MALLOC_CHECK: enable it, unless disabled explicitly
The malloc checks in tests are currently disabled. Actually evaluate the variable for turning them off and enable them if it's unset. Also use this opportunity to give it the more descriptive and consistent name TEST_NO_MALLOC_CHECK. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
René Scharfe committed
Sep 26, 2012 at 22:16 UTC
ee1431bfc565c5031e66408bc70c42be87a626aa
2 files changed
+2
-2
t/perf/perf-lib.sh
+1
-1
@@ -42,7 +42,7 @@ else
42
fi
43
44
TEST_NO_CREATE_REPO=t
45
-TEST_NO_MALLOC_=t
45
+TEST_NO_MALLOC_CHECK=t
46
47
. ../test-lib.sh
48
t/test-lib.sh
+1
-1
@@ -96,7 +96,7 @@ export EDITOR
96
# Add libc MALLOC and MALLOC_PERTURB test
97
# only if we are not executing the test with valgrind
98
if expr " $GIT_TEST_OPTS " : ".* --valgrind " >/dev/null ||
99
- test -n "TEST_NO_MALLOC_"
99
+ test -n "$TEST_NO_MALLOC_CHECK"
100
then
101
setup_malloc_check () {
102
: nothing