diff options
author | Matt Stancliff <matt@genges.com> | 2015-01-13 11:15:30 -0500 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-01-21 15:48:19 +0100 |
commit | 491d57abaae7ddb9f32951acc3c38e27f3638b90 (patch) | |
tree | 8e847b83fc6bb012ef40d8156b10856c699c4637 /tests | |
parent | b0146aafebd76e89638fe6b13947d0a53f5c7b27 (diff) | |
download | redis-491d57abaae7ddb9f32951acc3c38e27f3638b90.tar.gz |
Add --track-origins=yes to valgrind
Diffstat (limited to 'tests')
-rw-r--r-- | tests/instances.tcl | 4 | ||||
-rw-r--r-- | tests/support/server.tcl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/instances.tcl b/tests/instances.tcl index b9eb42258..4e2f33dfc 100644 --- a/tests/instances.tcl +++ b/tests/instances.tcl @@ -68,7 +68,7 @@ proc spawn_instance {type base_port count {conf {}}} { } if {$::valgrind} { - set pid [exec valgrind --suppressions=../../../src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full ../../../src/${prgname} $cfgfile &] + set pid [exec valgrind --track-origins=yes --suppressions=../../../src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full ../../../src/${prgname} $cfgfile &] } else { set pid [exec ../../../src/${prgname} $cfgfile &] } @@ -401,7 +401,7 @@ proc restart_instance {type id} { } if {$::valgrind} { - set pid [exec valgrind --suppressions=../../../src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full ../../../src/${prgname} $cfgfile &] + set pid [exec valgrind --track-origins=yes --suppressions=../../../src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full ../../../src/${prgname} $cfgfile &] } else { set pid [exec ../../../src/${prgname} $cfgfile &] } diff --git a/tests/support/server.tcl b/tests/support/server.tcl index 67ee24528..317b40a84 100644 --- a/tests/support/server.tcl +++ b/tests/support/server.tcl @@ -207,7 +207,7 @@ proc start_server {options {code undefined}} { set stderr [format "%s/%s" [dict get $config "dir"] "stderr"] if {$::valgrind} { - set pid [exec valgrind --suppressions=src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full src/redis-server $config_file > $stdout 2> $stderr &] + set pid [exec valgrind --track-origins=yes --suppressions=src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full src/redis-server $config_file > $stdout 2> $stderr &] } else { set pid [exec src/redis-server $config_file > $stdout 2> $stderr &] } |