Skip to content

Commit

Permalink
MALLOC_CHECK: enable it, unless disabled explicitly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
René Scharfe authored and Junio C Hamano committed Sep 27, 2012
1 parent 1b3185f commit ee1431b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion t/perf/perf-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ else
fi

TEST_NO_CREATE_REPO=t
TEST_NO_MALLOC_=t
TEST_NO_MALLOC_CHECK=t

. ../test-lib.sh

Expand Down
2 changes: 1 addition & 1 deletion t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee1431b

Please sign in to comment.