summaryrefslogtreecommitdiffstats
path: root/selftest
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2013-03-20 10:36:37 +0100
committerMichael Adam <obnox@samba.org>2013-12-11 17:14:21 +0100
commitc140fe0e146f9d6d6fc563d6ad181ae2513e9a91 (patch)
tree6432f1b64aa342b1f1f7e567879427a5f731508c /selftest
parentdb9188fbffb538b840d7e17fa3d1fc6dd215b3da (diff)
downloadsamba-c140fe0e146f9d6d6fc563d6ad181ae2513e9a91.tar.gz
samba-c140fe0e146f9d6d6fc563d6ad181ae2513e9a91.tar.xz
samba-c140fe0e146f9d6d6fc563d6ad181ae2513e9a91.zip
selftest: set valgrind options
In particular '--db-attach' interferes badly with the io redirection of the test environment and is superseded by the vgdb feature of valgrind. 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-xselftest/valgrind_run6
1 files changed, 5 insertions, 1 deletions
diff --git a/selftest/valgrind_run b/selftest/valgrind_run
index 5171d171a74..f06fa8629f8 100755
--- a/selftest/valgrind_run
+++ b/selftest/valgrind_run
@@ -4,6 +4,10 @@ ENV="$1"
shift 1
-CMD="$ENV valgrind -q --db-attach=yes --num-callers=30 $@"
+CMD="$ENV valgrind --num-callers=30
+--trace-children=yes --log-file=valgrind.%p.log
+${VALGRIND_OPT- --time-stamp=yes --track-fds=yes --read-var-info=yes --track-origins=yes --leak-check=yes}
+$@"
+
echo $CMD
eval $CMD