Skip to content

Commit

Permalink
Test: fixed osx "leaks" support in test.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
antirez committed Dec 3, 2012
1 parent 54b08c8 commit a2b3fff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/support/server.tcl
Expand Up @@ -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*}
}
}
Expand Down

0 comments on commit a2b3fff

Please sign in to comment.