Add entity decl handler to notation entity allocation test
This commit is contained in:
parent
775e63708d
commit
b30bd12020
@ -6269,6 +6269,8 @@ START_TEST(test_alloc_notation)
|
||||
repeat++;
|
||||
}
|
||||
allocation_count = i;
|
||||
dummy_handler_flags = 0;
|
||||
XML_SetEntityDeclHandler(parser, dummy_entity_decl_handler);
|
||||
if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text),
|
||||
XML_TRUE) != XML_STATUS_ERROR)
|
||||
break;
|
||||
@ -6278,6 +6280,8 @@ START_TEST(test_alloc_notation)
|
||||
fail("Parse succeeded despite allocation failures");
|
||||
if (i == MAX_ALLOC_COUNT)
|
||||
fail("Parse failed at maximum allocation count");
|
||||
if (dummy_handler_flags != DUMMY_ENTITY_DECL_HANDLER_FLAG)
|
||||
fail("Entity declaration handler not called");
|
||||
}
|
||||
#undef MAX_ALLOC_COUNT
|
||||
END_TEST
|
||||
|
Loading…
Reference in New Issue
Block a user