mirror of
https://github.com/redis/redis.git
synced 2026-05-28 04:02:46 -04:00
Show output of leaks command on a leak
This commit is contained in:
parent
00cf82c0bd
commit
5b12b47df9
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Reference in a new issue