diff options
author | antirez <antirez@gmail.com> | 2012-12-03 12:06:38 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-12-03 12:17:52 +0100 |
commit | a2b3fff23535d41b7bce6e4fac1bb5b6f4f15355 (patch) | |
tree | 688cab3a5b61012966f31b4dc82bb4821e159db4 | |
parent | 54b08c86a6de7f3b6d464675cd9eb17a69ea9b61 (diff) | |
download | redis-a2b3fff23535d41b7bce6e4fac1bb5b6f4f15355.tar.gz |
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.
-rw-r--r-- | tests/support/server.tcl | 4 |
1 files changed, 3 insertions, 1 deletions
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*} } } |