From a18ca73681aeabbf5b44796b2c167f8a57e07f6e Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 3 Dec 2012 12:06:38 +0100 Subject: [PATCH] Test: fixed osx "leaks" support in test. Due to changes in recent releases of osx leaks utility, the osx leak detection no longer worked. Now it is fixed in a way that should be backward compatible. --- tests/support/server.tcl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/support/server.tcl b/tests/support/server.tcl index 2c2665b64..acbfe73cf 100644 --- a/tests/support/server.tcl +++ b/tests/support/server.tcl @@ -38,7 +38,9 @@ proc kill_server config { if {[string match {*Darwin*} [exec uname -a]]} { tags {"leaks"} { test "Check for memory leaks (pid $pid)" { - exec leaks $pid + set output {0 leaks} + catch {exec leaks $pid} output + set output } {*0 leaks*} } } -- GitLab