From 088b9eadc430401df38cc7546ffa3156b71a0cd3 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 7 May 2014 15:57:32 +0200 Subject: [PATCH] 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. --- tests/support/server.tcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/support/server.tcl b/tests/support/server.tcl index de4f66db..edcbbcc5 100644 --- a/tests/support/server.tcl +++ b/tests/support/server.tcl @@ -40,7 +40,8 @@ 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]} { + if {[string match {*process does not exist*} $output] || + [string match {*cannot examine*} $output]} { # In a few tests we kill the server process. set output "0 leaks" }