From: Peter Edberg Date: Wed, 1 Feb 2017 07:52:19 +0000 (+0000) Subject: ICU-12914 Better loop control in test X-Git-Tag: milestone-59-0-1~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af88083329477986bc5f64b905ae4285fb68e6df;p=icu ICU-12914 Better loop control in test X-SVN-Rev: 39628 --- diff --git a/icu4c/source/test/cintltst/cbiapts.c b/icu4c/source/test/cintltst/cbiapts.c index 83c9a7150a9..1b58e1051c3 100644 --- a/icu4c/source/test/cintltst/cbiapts.c +++ b/icu4c/source/test/cintltst/cbiapts.c @@ -605,15 +605,17 @@ static void TestBreakIteratorRules() { if (U_FAILURE(status)) { log_err("FAIL: ubrk_openBinaryRules err: %s", u_errorName(status)); } else { + int32_t maxCount = sizeof(breaks); /* fail-safe test limit */ int32_t pos2 = ubrk_first(bi2); pos = ubrk_first(bi); - for (i=0; i 0); + ubrk_close(bi2); } }