diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-04-26 22:19:18 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-04-26 22:19:18 -0400 |
commit | b31ea3f7b9c084f8f15f79214117e62683e360d9 (patch) | |
tree | 9675bed4c36014524c036ae827db025a5d62e969 /test_packet.c | |
parent | 1acb38fc6f58cf20fd3f46dc2b6e1154b58e147c (diff) | |
download | gpsd-b31ea3f7b9c084f8f15f79214117e62683e360d9.tar.gz |
Reindent. All regression tests pass.
Most of the bulk of this one is the xgpsspeed code, which was not
formerly incldecd in reindenting.
Diffstat (limited to 'test_packet.c')
-rw-r--r-- | test_packet.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/test_packet.c b/test_packet.c index d43f7b00..d9109d64 100644 --- a/test_packet.c +++ b/test_packet.c @@ -276,7 +276,8 @@ static int packet_test(struct map *mp) mp->legend); ++failure; } else - printf("%2zi: %s test succeeded.\n", mp - singletests + 1, mp->legend); + printf("%2zi: %s test succeeded.\n", mp - singletests + 1, + mp->legend); #ifdef DUMPIT for (cp = packet.outbuffer; cp < packet.outbuffer + packet.outbuflen; cp++) { @@ -311,9 +312,8 @@ static void runon_test(struct map *mp) (void)fputs(mp->test, stdout); do { st = packet_get(nullfd, &packet); - printf("packet_parse() returned %zd\n", st); - } while - (st > 0); + printf("packet_parse() returned %zd\n", st); + } while (st > 0); /*@ +compdef +uniondef +usedef +formatcode @*/ } @@ -337,10 +337,11 @@ int main(int argc, char *argv[]) if (singletest) failcount += packet_test(singletests + singletest - 1); - else - { + else { (void)fputs("=== Packet identification tests\n ===", stdout); - for (mp = singletests; mp < singletests + sizeof(singletests) / sizeof(singletests[0]); mp++) + for (mp = singletests; + mp < singletests + sizeof(singletests) / sizeof(singletests[0]); + mp++) failcount += packet_test(mp); (void)fputs("=== EOF with buffer nonempty test ===\n", stdout); runon_test(&runontests[0]); |