From 58d29ed48a14154ef9887fb0d8c436cb72d63e23 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 15 Jun 2009 01:33:26 -0400 Subject: [PATCH] tests: Add --valgrind-leakcheck option to the test_script program Add an option which runs valgrind with the appropriate options for finding memory leaks. Signed-off-by: "Theodore Ts'o" --- tests/test_script.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_script.in b/tests/test_script.in index bd3cc3ea..aac28fb6 100644 --- a/tests/test_script.in +++ b/tests/test_script.in @@ -10,6 +10,11 @@ case "$1" in --valgrind) export USE_VALGRIND="valgrind -q --sim-hints=lax-ioctls" shift; + ;; + --valgrind-leakcheck) + export USE_VALGRIND="valgrind --sim-hints=lax-ioctls --leak-check=full --show-reachable=yes --log-file=/tmp/valgrind-%p.log" + shift; + ;; esac if test "$1"x = x ; then -- 2.11.0