summaryrefslogtreecommitdiff
path: root/test/packet.test.chk
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-04-18 23:12:45 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-04-18 23:13:42 -0400
commit948770e120fe7028ed0f65c539b9dda129ee2a31 (patch)
treefdc61a97e48074cab72f9f8a8805904ef499ebf2 /test/packet.test.chk
parentb7f64f8b840192601ac0b592bdee43e3eba6ebe9 (diff)
downloadgpsd-948770e120fe7028ed0f65c539b9dda129ee2a31.tar.gz
Add a regression test for correct behavior on EOF with empty buffer.
Diffstat (limited to 'test/packet.test.chk')
-rw-r--r--test/packet.test.chk9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/packet.test.chk b/test/packet.test.chk
index 3c170be4..2f3c8bb0 100644
--- a/test/packet.test.chk
+++ b/test/packet.test.chk
@@ -1,4 +1,5 @@
- 1: NMEA packet with checksum (1) test succeeded.
+=== Packet identification tests
+ === 1: NMEA packet with checksum (1) test succeeded.
2: NMEA packet with checksum (2) test succeeded.
3: NMEA packet with checksum and 4 chars of leading garbage test succeeded.
4: NMEA packet without checksum test succeeded.
@@ -15,3 +16,9 @@
15: EverMore packet 0x04, 0x10 three times at the beginning test succeeded.
16: RTCM104V3 type 1005 packet test succeeded.
17: RTCM104V3 type 1005 packet with 4th byte garbled test succeeded.
+=== EOF with buffer nonempty test ===
+$GPVTG,308.74,T,,M,0.00,N,0.0,K*68
+$GPGGA,110534.994,4002.1425,N,07531.2585,W,0,00,50.0,172.7,M,-33.8,M,0.0,0000*7A
+packet_parse() returned 36
+packet_parse() returned 82
+packet_parse() returned 0