mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
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.
This commit is contained in:
parent
2f87cf8b01
commit
a18ca73681
@ -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*}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user