Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
4b918769
"vscode:/vscode.git/clone" did not exist on "50d0e82d54d9fcc7f42443a9cde51d812934b3c1"
Commit
4b918769
authored
Dec 10, 2010
by
antirez
Browse files
command line option in test suite to activate valgrind mode
parent
e9bc56db
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/support/server.tcl
View file @
4b918769
...
...
@@ -171,7 +171,7 @@ proc start_server {options {code undefined}} {
set stderr
[
format
"%s/%s"
[
dict get $config
"dir"
]
"stderr"
]
if
{
$::valgrind
}
{
exec valgrind src/redis-server $config_file > $stdout 2> $stderr &
exec valgrind
--suppressions=src/valgrind.sup
src/redis-server $config_file > $stdout 2> $stderr &
}
else
{
exec src/redis-server $config_file > $stdout 2> $stderr &
}
...
...
tests/test_helper.tcl
View file @
4b918769
...
...
@@ -167,6 +167,8 @@ for {set j 0} {$j < [llength $argv]} {incr j} {
}
}
incr j
}
elseif
{
$opt
eq
{
--valgrind
}}
{
set ::valgrind 1
}
elseif
{
$opt
eq
{
--file
}}
{
set ::file $arg
incr j
...
...
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