From 196e63e1bf8e7b9826dbc57ea0f93a1e043c0a4f Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 9 Jan 2016 17:19:12 +0100 Subject: [PATCH] testcases: report tests with AddressSanitizer/LeakSanitizer reports --- testcases/complete-run.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/testcases/complete-run.pl b/testcases/complete-run.pl index 4657a2ec..2d61e993 100755 --- a/testcases/complete-run.pl +++ b/testcases/complete-run.pl @@ -262,6 +262,20 @@ if ($options{coverage}) { } } +# Report logfiles that match “(Leak|Address)Sanitizer:”. +my @logs_with_leaks; +for my $log (<$outdir/i3-log-for-*>) { + if (slurp($log) =~ /(Leak|Address)Sanitizer:/) { + push @logs_with_leaks, $log; + } +} +if (scalar @logs_with_leaks > 0) { + say "\nThe following test logfiles contain AddressSanitizer or LeakSanitizer reports:"; + for my $log (sort @logs_with_leaks) { + say "\t$log"; + } +} + exit ($aggregator->failed > 0); # -- 2.39.5