test-lib: enable MALLOC_* for the actual tests
commita57397b0d6709d75ab23145fd4fea5ce65dc1054
authorThomas Rast <trast@inf.ethz.ch>
Mon, 17 Jun 2013 09:18:46 +0000 (17 11:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Jun 2013 20:28:45 +0000 (17 13:28 -0700)
tree2b0915a303c862ae7bbd0ac59a220e585adae39c
parentedca4152560522a431a51fc0a06147fc680b5b18
test-lib: enable MALLOC_* for the actual tests

1b3185f (MALLOC_CHECK: various clean-ups, 2012-09-14) moved around the
MALLOC_CHECK_ and MALLOC_PERTURB_ assignments, intending to limit
their effect to only the test runs.  However, they were actually
enabled only during test cleanup.  Call setup/teardown_malloc_check
also around the evaluation of the actual test snippet.

Signed-off-by: Thomas Rast <trast@inf.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh