diff options
author | Michael Richardson <mcr@sandelman.ca> | 2015-03-09 14:35:02 -0400 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-03-10 23:21:04 -0700 |
commit | 0e5490dd43d75791f615f81e63022b7349ea575b (patch) | |
tree | c53fd3b152b4922bbe1d57ad880380ae54cdfbcd /tests | |
parent | eec7c9e757ef6d74cc062caf5072505280ef8c3f (diff) | |
download | tcpdump-0e5490dd43d75791f615f81e63022b7349ea575b.tar.gz |
make sure that EXIT code is appended to results file
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/TESTonce | 2 |
1 files changed, 1 insertions, 1 deletions
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; |