From c6ce18d56cd3adbbab0924bbe476c68a7c063c48 Mon Sep 17 00:00:00 2001 From: Folkert Date: Fri, 8 Apr 2022 10:49:06 +0200 Subject: [PATCH] slighly more information when reporting valgrind problem --- cli/tests/cli_run.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cli/tests/cli_run.rs b/cli/tests/cli_run.rs index 9b2a36b0ac..586f9a7f3e 100644 --- a/cli/tests/cli_run.rs +++ b/cli/tests/cli_run.rs @@ -111,7 +111,7 @@ mod cli_run { build_example(file, &all_flags[..]); let out = if use_valgrind && ALLOW_VALGRIND { - let (valgrind_out, raw_xml) = if let Some(input_file) = input_file { + let (valgrind_out, raw_xml) = if let Some(ref input_file) = input_file { run_with_valgrind( stdin, &[ @@ -149,7 +149,10 @@ mod cli_run { println!(" {}", text); } } - panic!("Valgrind reported memory errors"); + panic!( + "Valgrind reported memory errors in {:?} with flags {:?}", + file, flags + ); } } else { let exit_code = match valgrind_out.status.code() {