]> git.sur5r.net Git - i3/i3/commitdiff
testcases: report tests with AddressSanitizer/LeakSanitizer reports
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 9 Jan 2016 16:19:12 +0000 (17:19 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 9 Jan 2016 16:19:12 +0000 (17:19 +0100)
testcases/complete-run.pl

index 4657a2ec809ce22a6f662ed9ed4d942a2c5c6093..2d61e993c314e027bc686a885817bc6252176375 100755 (executable)
@@ -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);
 
 #