From: antirez Date: Mon, 3 Dec 2012 11:06:38 +0000 (+0100) Subject: Test: fixed osx "leaks" support in test. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/a2b3fff23535d41b7bce6e4fac1bb5b6f4f15355 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. --- diff --git a/tests/support/server.tcl b/tests/support/server.tcl index 2c2665b6..acbfe73c 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*} } }