Show output of leaks command on a leak
This commit is contained in:
parent
a2459dd4e7
commit
4865ad620b
@ -90,8 +90,10 @@ proc test {name code {okpattern notspecified}} {
|
||||
}
|
||||
}
|
||||
if {$::traceleaks} {
|
||||
if {![string match {*0 leaks*} [exec leaks redis-server]]} {
|
||||
set output [exec leaks redis-server]
|
||||
if {![string match {*0 leaks*} $output]} {
|
||||
puts "--------- Test $::testnum LEAKED! --------"
|
||||
puts $output
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user