From 5b12b47df9bfdb92bc6878ee9f9307a2bb413f15 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Fri, 15 Oct 2010 15:56:16 +0200 Subject: [PATCH] Show output of leaks command on a leak --- tests/support/test.tcl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/support/test.tcl b/tests/support/test.tcl index 93f64928..e801e1f2 100644 --- a/tests/support/test.tcl +++ b/tests/support/test.tcl @@ -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 } } -- 2.45.2