mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
Show output of leaks command on a leak
This commit is contained in:
parent
00cf82c0bd
commit
5b12b47df9
@ -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