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
e1fce552
Commit
e1fce552
authored
Feb 10, 2015
by
antirez
Browse files
Added regression test for issue #2371.
parent
9e9abe29
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/integration/logging.tcl
0 → 100644
View file @
e1fce552
set server_path
[
tmpdir server.log
]
set system_name
[
string tolower
[
exec uname -s
]]
if
{
$system
_name eq
{
linux
}
|| $system_name eq
{
darwin
}}
{
start_server
[
list overrides
[
list dir $server_path
]]
{
test
"Server is able to generate a stack trace on selected systems"
{
r config set watchdog-period 200
r debug sleep 1
set pattern
"*debugCommand*"
set retry 10
while
{
$retry
}
{
set result
[
exec tail -100 <
[
srv 0 stdout
]]
if
{[
string match $pattern $result
]}
{
break
}
incr retry -1
after 1000
}
if
{
$retry
== 0
}
{
error
"assertion:expected stack trace not found into log file"
}
}
}
}
tests/test_helper.tcl
View file @
e1fce552
...
...
@@ -38,6 +38,7 @@ set ::all_tests {
integration/aof
integration/rdb
integration/convert-zipmap-hash-on-load
integration/logging
unit/pubsub
unit/slowlog
unit/scripting
...
...
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