Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b5126d
)
tests: Add --valgrind-leakcheck option to the test_script program
author
Theodore Ts'o
<tytso@mit.edu>
Mon, 15 Jun 2009 05:33:26 +0000
(
01:33
-0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 15 Jun 2009 05:33:26 +0000
(
01:33
-0400)
Add an option which runs valgrind with the appropriate options for
finding memory leaks.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
tests/test_script.in
patch
|
blob
|
history
diff --git
a/tests/test_script.in
b/tests/test_script.in
index
bd3cc3e
..
aac28fb
100644
(file)
--- 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