From: Rhodri James Date: Tue, 7 Mar 2017 18:47:29 +0000 (+0000) Subject: Test long public name in doctype allocator test X-Git-Tag: R_2_2_3~22^2~240 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=604a527186aa5afce81601a510685fc6af477cad;p=libexpat Test long public name in doctype allocator test --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 090dfa5d..7bbf97ae 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -5607,7 +5607,25 @@ START_TEST(test_alloc_parse_public_doctype) { const char *text = "\n" - "\n" + "\n" ""; int i; #define MAX_ALLOC_COUNT 10 @@ -5615,12 +5633,12 @@ START_TEST(test_alloc_parse_public_doctype) for (i = 0; i < MAX_ALLOC_COUNT; i++) { /* Repeat certain counts to defeat cached allocations */ - if (i == 4 && repeat == 4) { + if (i == 4 && repeat == 5) { i -= 2; repeat++; } else if ((i == 2 && repeat < 3) || - (i == 3 && repeat == 3)) { + (i == 3 && repeat < 5)) { i--; repeat++; }