Make test_nsalloc_realloc_attributes() robust vs allocation changes

This commit is contained in:
Rhodri James 2017-07-26 17:55:15 +01:00
parent 49143cb2fe
commit c39b9a194b

View File

@ -10804,7 +10804,9 @@ START_TEST(test_nsalloc_realloc_attributes)
if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text),
XML_TRUE) != XML_STATUS_ERROR)
break;
XML_ParserReset(parser, NULL);
/* See comment in test_nsalloc_xmlns() */
nsalloc_teardown();
nsalloc_setup();
}
if (i == 0)
fail("Parsing worked despite failing reallocations");