mirror of https://github.com/vitalif/e2fsprogs
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>bitmap-optimize
parent
3b5126de44
commit
58d29ed48a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue