selftest: use MALLOC_CHECK_=3 to give a diagnostic on failure
authorGregor Beck <gbeck@sernet.de>
Wed, 20 Mar 2013 09:58:22 +0000 (10:58 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 11 Dec 2013 16:14:50 +0000 (17:14 +0100)
With MALLOC_CHECK_ set to 2 in case of a failure abort() is called
silently which hopefully creates a core dump.
MALLOC_CHECK_=3 additionally gives an error message on stderr in case.

Signed-off-by: Gregor Beck <gbeck@sernet.de>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
selftest/selftest.pl
selftest/selftest.py

index b60b76228d04199a9b2e8c9cc042175bf8aed37a..c74eff1cbfb6b334faebe6d555cbd779c8c6bac3 100755 (executable)
@@ -256,7 +256,7 @@ my @tests = @ARGV;
 # quick hack to disable rpc validation when using valgrind - its way too slow
 unless (defined($ENV{VALGRIND})) {
        $ENV{VALIDATE} = "validate";
-       $ENV{MALLOC_CHECK_} = 2;
+       $ENV{MALLOC_CHECK_} = 3;
 }
 
 # make all our python scripts unbuffered
index 2da1ef8ff630ebf4be4c6140869b88361bae23c2..8a1999a44052e1ee95ec59fd2a41820c631948ff 100755 (executable)
@@ -153,7 +153,7 @@ tests = args
 # quick hack to disable rpc validation when using valgrind - it is way too slow
 if not os.environ.get("VALGRIND"):
     os.environ["VALIDATE"] = "validate"
-    os.environ["MALLOC_CHECK_"] = "2"
+    os.environ["MALLOC_CHECK_"] = "3"
 
 # make all our python scripts unbuffered
 os.environ["PYTHONUNBUFFERED"] = "1"