diff options
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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); } } |