diff options
author | Gregor Beck <gbeck@sernet.de> | 2013-03-20 10:58:22 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-12-11 17:14:50 +0100 |
commit | 2846a7d0accf87542b42b08077b7848871261b79 (patch) | |
tree | 45ce3273003d574c3af966ae737a2b55b46dea86 /selftest | |
parent | c140fe0e146f9d6d6fc563d6ad181ae2513e9a91 (diff) | |
download | samba-2846a7d0accf87542b42b08077b7848871261b79.tar.gz samba-2846a7d0accf87542b42b08077b7848871261b79.tar.xz samba-2846a7d0accf87542b42b08077b7848871261b79.zip |
selftest: use MALLOC_CHECK_=3 to give a diagnostic on failure
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>
Diffstat (limited to 'selftest')
-rwxr-xr-x | selftest/selftest.pl | 2 | ||||
-rwxr-xr-x | selftest/selftest.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl index b60b76228d0..c74eff1cbfb 100755 --- a/selftest/selftest.pl +++ b/selftest/selftest.pl @@ -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 diff --git a/selftest/selftest.py b/selftest/selftest.py index 2da1ef8ff63..8a1999a4405 100755 --- a/selftest/selftest.py +++ b/selftest/selftest.py @@ -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" |