diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-06-15 01:33:26 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-06-15 01:33:26 -0400 |
commit | 58d29ed48a14154ef9887fb0d8c436cb72d63e23 (patch) | |
tree | 5fc83b31578806c90da457fe8fd72e613b285835 /tests | |
parent | 3b5126de44f8215ae572853415b0b3097cdfc6a2 (diff) | |
download | e2fsprogs-58d29ed48a14154ef9887fb0d8c436cb72d63e23.tar.gz |
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" <tytso@mit.edu>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_script.in | 5 |
1 files changed, 5 insertions, 0 deletions
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 |