]> The Tcpdump Group git mirrors - tcpdump/commitdiff
show core dump status clearly
authorMichael Richardson <[email protected]>
Sun, 18 Aug 2019 18:13:06 +0000 (14:13 -0400)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 24 Sep 2019 12:12:09 +0000 (14:12 +0200)
tests/TESTonce

index c4ba2f8494ad133e5019b28ba93355e463b2ecf9..4f4acd9d06342b58394868601dd7dc65153e17a8 100755 (executable)
@@ -27,6 +27,8 @@ else {
     # to be set properly if the tcpdump core dumps.
     $r = system "../tcpdump 2>/dev/null -n -t -r $input $options >NEW/$outputbase";
     if($r != 0) {
+        my $coredump = false;
+        my $status = 0;
         # this means tcpdump failed.
         open(OUTPUT, ">>"."NEW/$outputbase") || die "fail to open $outputbase\n";
         printf OUTPUT "EXIT CODE %08x\n", $r;