Skip to content

Commit 491d57a

Browse files
mattstaantirez
authored andcommitted
Add --track-origins=yes to valgrind
1 parent b0146aa commit 491d57a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/instances.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ proc spawn_instance {type base_port count {conf {}}} {
6868
}
6969

7070
if {$::valgrind} {
71-
set pid [exec valgrind --suppressions=../../../src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full ../../../src/${prgname} $cfgfile &]
71+
set pid [exec valgrind --track-origins=yes --suppressions=../../../src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full ../../../src/${prgname} $cfgfile &]
7272
} else {
7373
set pid [exec ../../../src/${prgname} $cfgfile &]
7474
}
@@ -401,7 +401,7 @@ proc restart_instance {type id} {
401401
}
402402

403403
if {$::valgrind} {
404-
set pid [exec valgrind --suppressions=../../../src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full ../../../src/${prgname} $cfgfile &]
404+
set pid [exec valgrind --track-origins=yes --suppressions=../../../src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full ../../../src/${prgname} $cfgfile &]
405405
} else {
406406
set pid [exec ../../../src/${prgname} $cfgfile &]
407407
}

tests/support/server.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ proc start_server {options {code undefined}} {
207207
set stderr [format "%s/%s" [dict get $config "dir"] "stderr"]
208208

209209
if {$::valgrind} {
210-
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 &]
210+
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 &]
211211
} else {
212212
set pid [exec src/redis-server $config_file > $stdout 2> $stderr &]
213213
}

0 commit comments

Comments
 (0)