Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
491d57ab
Commit
491d57ab
authored
Jan 13, 2015
by
Matt Stancliff
Committed by
antirez
Jan 21, 2015
Browse files
Add --track-origins=yes to valgrind
parent
b0146aaf
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/instances.tcl
View file @
491d57ab
...
@@ -68,7 +68,7 @@ proc spawn_instance {type base_port count {conf {}}} {
...
@@ -68,7 +68,7 @@ proc spawn_instance {type base_port count {conf {}}} {
}
}
if
{
$::valgrind
}
{
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
{
}
else
{
set pid
[
exec ../../../src/$
{
prgname
}
$cfgfile &
]
set pid
[
exec ../../../src/$
{
prgname
}
$cfgfile &
]
}
}
...
@@ -401,7 +401,7 @@ proc restart_instance {type id} {
...
@@ -401,7 +401,7 @@ proc restart_instance {type id} {
}
}
if
{
$::valgrind
}
{
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
{
}
else
{
set pid
[
exec ../../../src/$
{
prgname
}
$cfgfile &
]
set pid
[
exec ../../../src/$
{
prgname
}
$cfgfile &
]
}
}
...
...
tests/support/server.tcl
View file @
491d57ab
...
@@ -207,7 +207,7 @@ proc start_server {options {code undefined}} {
...
@@ -207,7 +207,7 @@ proc start_server {options {code undefined}} {
set stderr
[
format
"%s/%s"
[
dict get $config
"dir"
]
"stderr"
]
set stderr
[
format
"%s/%s"
[
dict get $config
"dir"
]
"stderr"
]
if
{
$::valgrind
}
{
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
{
}
else
{
set pid
[
exec src/redis-server $config_file > $stdout 2> $stderr &
]
set pid
[
exec src/redis-server $config_file > $stdout 2> $stderr &
]
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment