提交 a18ca736 编写于 作者: A antirez

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.
上级 2f87cf8b
...@@ -38,7 +38,9 @@ proc kill_server config { ...@@ -38,7 +38,9 @@ proc kill_server config {
if {[string match {*Darwin*} [exec uname -a]]} { if {[string match {*Darwin*} [exec uname -a]]} {
tags {"leaks"} { tags {"leaks"} {
test "Check for memory leaks (pid $pid)" { test "Check for memory leaks (pid $pid)" {
exec leaks $pid set output {0 leaks}
catch {exec leaks $pid} output
set output
} {*0 leaks*} } {*0 leaks*}
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册