Fix test core.pcap.dumper to work on OpenBSD

The sdiff command on OpenBSD truncates the output at a different
position than sdiff on other platforms.  Simple fix is to use diff
instead of sdiff.
This commit is contained in:
Daniel Thayer 2016-12-01 16:35:54 -06:00
parent b39594408c
commit de1c13e3a3
2 changed files with 5 additions and 2 deletions

View file

@ -1 +1,4 @@
00000010 ff ff 00 00 01 00 00 00 1d a2 b2 4e 73 00 07 00 | | 00000010 00 20 00 00 01 00 00 00 1d a2 b2 4e 73 00 07 00 |
2c2
< 00000010 ff ff 00 00 01 00 00 00 1d a2 b2 4e 73 00 07 00 |...........Ns...|
---
> 00000010 00 20 00 00 01 00 00 00 1d a2 b2 4e 73 00 07 00 |. .........Ns...|

View file

@ -1,5 +1,5 @@
# @TEST-EXEC: bro -r $TRACES/workshop_2011_browse.trace -w dump
# @TEST-EXEC: hexdump -C $TRACES/workshop_2011_browse.trace >1
# @TEST-EXEC: hexdump -C dump >2
# @TEST-EXEC: sdiff -s 1 2 | awk '{ gsub(/\t/, " "); print }' >output || true
# @TEST-EXEC: diff 1 2 >output || true
# @TEST-EXEC: btest-diff output