mirror of
https://github.com/fluencelabs/redis
synced 2025-05-01 05:22:13 +00:00
Test: do not complain when "leaks" can't run because process died.
This commit is contained in:
parent
c69c40a4ae
commit
74d86dc13b
@ -40,6 +40,10 @@ proc kill_server config {
|
|||||||
test "Check for memory leaks (pid $pid)" {
|
test "Check for memory leaks (pid $pid)" {
|
||||||
set output {0 leaks}
|
set output {0 leaks}
|
||||||
catch {exec leaks $pid} output
|
catch {exec leaks $pid} output
|
||||||
|
if {[string match {*process does not exist*} $output]} {
|
||||||
|
# In a few tests we kill the server process.
|
||||||
|
set output "0 leaks"
|
||||||
|
}
|
||||||
set output
|
set output
|
||||||
} {*0 leaks*}
|
} {*0 leaks*}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user