X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=testcases%2Fcomplete-run.pl;h=2d61e993c314e027bc686a885817bc6252176375;hb=196e63e1bf8e7b9826dbc57ea0f93a1e043c0a4f;hp=4657a2ec809ce22a6f662ed9ed4d942a2c5c6093;hpb=cb3cdb602a08432d8b972d06bef832e056119ad9;p=i3%2Fi3 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); #