Added regression test for issue #2371.
This commit is contained in:
parent
9e9abe29fe
commit
e1fce55237
24
tests/integration/logging.tcl
Normal file
24
tests/integration/logging.tcl
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -38,6 +38,7 @@ set ::all_tests {
|
|||||||
integration/aof
|
integration/aof
|
||||||
integration/rdb
|
integration/rdb
|
||||||
integration/convert-zipmap-hash-on-load
|
integration/convert-zipmap-hash-on-load
|
||||||
|
integration/logging
|
||||||
unit/pubsub
|
unit/pubsub
|
||||||
unit/slowlog
|
unit/slowlog
|
||||||
unit/scripting
|
unit/scripting
|
||||||
|
Loading…
x
Reference in New Issue
Block a user