]> Kevux Git Server - rit/commitdiff
MALLOC_CHECK: enable it, unless disabled explicitly
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Wed, 26 Sep 2012 20:16:39 +0000 (22:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Sep 2012 06:39:13 +0000 (23:39 -0700)
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>
t/perf/perf-lib.sh
t/test-lib.sh

index 1d0bb9d..a816fbc 100644 (file)
@@ -42,7 +42,7 @@ else
 fi
 
 TEST_NO_CREATE_REPO=t
-TEST_NO_MALLOC_=t
+TEST_NO_MALLOC_CHECK=t
 
 . ../test-lib.sh
 
index aad4606..9ecbc40 100644 (file)
@@ -96,7 +96,7 @@ export EDITOR
 # Add libc MALLOC and MALLOC_PERTURB test
 # only if we are not executing the test with valgrind
 if expr " $GIT_TEST_OPTS " : ".* --valgrind " >/dev/null ||
-   test -n "TEST_NO_MALLOC_"
+   test -n "$TEST_NO_MALLOC_CHECK"
 then
        setup_malloc_check () {
                : nothing