From: Elia Pinto Date: Thu, 16 May 2013 21:28:30 GMT Subject: Re: [PATCH 1/6] test-lib: enable MALLOC_* for the actual tests Message-ID: In-Reply-To: <043f7ee12630ae267bcde88e92a7dfacbf41e730.1368736093.git.trast@inf.ethz.ch> 2013/5/16 Thomas Rast : > 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 > --- > t/test-lib.sh | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/t/test-lib.sh b/t/test-lib.sh > index ca6bdef..229f5f7 100644 > --- a/t/test-lib.sh > +++ b/t/test-lib.sh > @@ -337,8 +337,10 @@ test_eval_ () { > test_run_ () { > test_cleanup=: > expecting_failure=$2 > + setup_malloc_check > test_eval_ "$1" > eval_ret=$? > + teardown_malloc_check > > if test -z "$immediate" || test $eval_ret = 0 || test -n "$expecting_failure" > then > -- > 1.8.3.rc2.393.g8636c0b > > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html Good.