]> git.saurik.com Git - redis.git/commitdiff
Test: fixed osx "leaks" support in test.
authorantirez <antirez@gmail.com>
Mon, 3 Dec 2012 11:06:38 +0000 (12:06 +0100)
committerantirez <antirez@gmail.com>
Mon, 3 Dec 2012 11:17:52 +0000 (12:17 +0100)
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.

tests/support/server.tcl

index 2c2665b6449f41cbc5f5456f154eeab217e960bf..acbfe73cff46b3a63837df7cbd656ca8b5357194 100644 (file)
@@ -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*}
                 }
             }