From: Michael Richardson Date: Mon, 9 Mar 2015 18:35:02 +0000 (-0400) Subject: make sure that EXIT code is appended to results file X-Git-Tag: tcpdump-4.7.2~1^2~2 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/94c8e09a44c9a6334dc26371a49e3929fb4d0176 make sure that EXIT code is appended to results file --- diff --git a/tests/TESTonce b/tests/TESTonce index e6141d4b..30ffccdb 100755 --- a/tests/TESTonce +++ b/tests/TESTonce @@ -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;