From 1367fe1bafa1b877f4f92361294eab3a1dd3c11c Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 28 Aug 2016 01:20:44 -0400 Subject: fix te-parser.c --- test.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test.c') diff --git a/test.c b/test.c index a371bc6..b1ca674 100644 --- a/test.c +++ b/test.c @@ -151,6 +151,7 @@ test_percent(void) { static char * te_parser_tests[] = { + " ", "gzip", "deflate", "gzip,deflate,chunked", @@ -168,6 +169,8 @@ test_te_parser(void) { // get test string char * const s = te_parser_tests[i]; + fprintf(stderr, "te testing: \"%s\"\n", s); + // init parser fhp_te_parser_t p; fhp_te_parser_init(&p); @@ -178,11 +181,12 @@ test_te_parser(void) { } // finish parsing - if ((err = fhp_te_parser_done(&p)) != FHP_OK) { + size_t num_tes; + if ((err = fhp_te_parser_done(&p, &num_tes)) != FHP_OK) { die("test_te_parser", "fhp_te_parser_push", err); } - fprintf(stderr, "te test: \"%s\", p->num_tes = %lu\n", s, p.num_tes); + fprintf(stderr, "te test: \"%s\", num_tes = %lu\n", s, num_tes); } } -- cgit v1.2.3