From: Michael Stapelberg Date: Sat, 9 Jan 2016 16:19:12 +0000 (+0100) Subject: testcases: report tests with AddressSanitizer/LeakSanitizer reports X-Git-Tag: 4.12~36 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=196e63e1bf8e7b9826dbc57ea0f93a1e043c0a4f;p=i3%2Fi3 testcases: report tests with AddressSanitizer/LeakSanitizer reports --- 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); #