Commit 088b9ead authored by antirez's avatar antirez
Browse files

Test: handle new osx 'leaks' error.

Sometimes the process is still there but no longer in a state that can
be checked (after being killed). This used to happen after a call to
SHUTDOWN NOSAVE in the scripting unit, causing a false positive.
parent 4f686555
...@@ -40,7 +40,8 @@ proc kill_server config { ...@@ -40,7 +40,8 @@ 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]} { if {[string match {*process does not exist*} $output] ||
[string match {*cannot examine*} $output]} {
# In a few tests we kill the server process. # In a few tests we kill the server process.
set output "0 leaks" set output "0 leaks"
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment