[test suite] don't append segfault searches to every test output file
authorMichael Rash <mbr@cipherdyne.org>
Sun, 4 Aug 2013 15:25:58 +0000 (11:25 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Sun, 4 Aug 2013 15:25:58 +0000 (11:25 -0400)
test/test-fwknop.pl

index 44e4fa7..0ef1358 100755 (executable)
@@ -1057,7 +1057,9 @@ sub look_for_crashes() {
         next unless $f =~ /\.test$/;
 
         if (&file_find_regex([qr/segmentation\sfault/i, qr/core\sdumped/i],
-                $MATCH_ANY, $APPEND_RESULTS, $f)) {
+                $MATCH_ANY, $NO_APPEND_RESULTS, $f)) {
+            &write_test_file("[-] segfault or core dump message found in: $f\n",
+                $curr_test_file);
             $rv = 0;
         }
     }