From: Theodore Ts'o Date: Mon, 15 Jun 2009 05:33:26 +0000 (-0400) Subject: tests: Add --valgrind-leakcheck option to the test_script program X-Git-Tag: v1.41.7~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58d29ed48a14154ef9887fb0d8c436cb72d63e23;p=thirdparty%2Fe2fsprogs.git 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" --- diff --git a/tests/test_script.in b/tests/test_script.in index bd3cc3eaf..aac28fb63 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