add a test that needs to suspend on lookahead in the middle of a chunk

This commit is contained in:
Sven M. Hallberg 2015-09-04 21:06:50 +02:00
parent 1276004250
commit 90b6f30fa1
2 changed files with 30 additions and 0 deletions

View file

@ -155,6 +155,10 @@
g_test_fail(); \
break; \
} \
g_check_parse_chunks_failed_(parser, chunk1, c1_len, chunk2, c2_len); \
} while(0)
#define g_check_parse_chunks_failed_(parser, chunk1, c1_len, chunk2, c2_len) do { \
HSuspendedParser *s = h_parse_start(parser); \
if(!s) { \
g_test_message("Chunk-wise parsing not available"); \
@ -177,6 +181,10 @@
g_test_fail(); \
break; \
} \
g_check_parse_chunks_match_(parser, chunk1, c1_len, chunk2, c2_len, result); \
} while(0)
#define g_check_parse_chunks_match_(parser, chunk1, c1_len, chunk2, c2_len, result) do { \
HSuspendedParser *s = h_parse_start(parser); \
if(!s) { \
g_test_message("Chunk-wise parsing not available"); \