Test: do not complain when "leaks" can't run because process died.

This commit is contained in:
antirez 2014-03-25 09:33:27 +01:00
parent 6e33c908dd
commit 9e0b9f12b2

View File

@ -40,6 +40,10 @@ proc kill_server config {
test "Check for memory leaks (pid $pid)" {
set output {0 leaks}
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
} {*0 leaks*}
}