ICU-10354 Adding infinite loop check to test.

X-SVN-Rev: 41357
This commit is contained in:
Shane Carr 2018-05-08 04:26:01 +00:00
parent 641c8a1cba
commit 8db1bee493

View File

@ -9325,6 +9325,10 @@ void NumberFormatTest::Test10354() {
FieldPositionIterator positions;
df.format(NAN, result, &positions, errorCode);
errorCode.logIfFailureAndReset("DecimalFormat.format(NAN, FieldPositionIterator) failed");
FieldPosition fp;
while (positions.next(fp)) {
// Should not loop forever
}
}
void NumberFormatTest::Test11645_ApplyPatternEquality() {