]> The Tcpdump Group git mirrors - tcpdump/commitdiff
make sure that EXIT code is appended to results file
authorMichael Richardson <[email protected]>
Mon, 9 Mar 2015 18:35:02 +0000 (14:35 -0400)
committerMichael Richardson <[email protected]>
Mon, 9 Mar 2015 18:35:02 +0000 (14:35 -0400)
tests/TESTonce

index e6141d4b263f3e3f5c75095176cbda72ce06961c..30ffccdb27f9224c65292fd8b81c36d952645c11 100755 (executable)
@@ -24,7 +24,7 @@ else {
     $r = system "../tcpdump 2>/dev/null -n -r $input $options >NEW/$output";
     if($r == 0x100) {
         # this means tcpdump exited with code 1.
-        open(OUTPUT, ">"."NEW/$output") || die "fail to open $output\n";
+        open(OUTPUT, ">>"."NEW/$output") || die "fail to open $output\n";
         printf OUTPUT "EXIT CODE %08x\n", $r;
         close(OUTPUT);
         $r = 0;