ICU-10354 Adding infinite loop check to test.
X-SVN-Rev: 41357
This commit is contained in:
parent
641c8a1cba
commit
8db1bee493
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user