From: antirez Date: Sat, 24 Mar 2012 11:06:56 +0000 (+0100) Subject: When running the test in valgrind mode, pass the right flags to show memory leaks... X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/29e1976855f9aabb77407c018db5649c15427e22 When running the test in valgrind mode, pass the right flags to show memory leaks stack traces but only including the "definitely lost" items. --- diff --git a/tests/support/server.tcl b/tests/support/server.tcl index 948b5356..928e5c40 100644 --- a/tests/support/server.tcl +++ b/tests/support/server.tcl @@ -176,7 +176,7 @@ proc start_server {options {code undefined}} { set stderr [format "%s/%s" [dict get $config "dir"] "stderr"] if {$::valgrind} { - exec valgrind --suppressions=src/valgrind.sup src/redis-server $config_file > $stdout 2> $stderr & + exec valgrind --suppressions=src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full src/redis-server $config_file > $stdout 2> $stderr & } else { exec src/redis-server $config_file > $stdout 2> $stderr & }