conform: Set harsher environment for running tests
authorEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 20 Mar 2012 16:18:20 +0000 (16:18 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 20 Mar 2012 16:19:23 +0000 (16:19 +0000)
Set the MALLOC_CHECK_ and MALLOC_PERTURB_ environment variables to catch
allocation issues.

tests/conform/run-tests.sh

index 1104953..03f5a7a 100755 (executable)
@@ -9,4 +9,4 @@ do
   TESTS="$TESTS wrappers/`basename $i`"
 done
 
-exec gtester "$@" $TESTS
+G_DEBUG=gc-friendly MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) gtester "$@" $TESTS