From: Peter Edberg Date: Sat, 23 Feb 2013 01:38:04 +0000 (+0000) Subject: ICU-9967 Timebomb some test values for Dangi cal limits test, to be fixed with #9972 X-Git-Tag: milestone-59-0-1~3055 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40d1216e5ea8d6f484e4fedc0c5e7b488ddab1da;p=icu ICU-9967 Timebomb some test values for Dangi cal limits test, to be fixed with #9972 X-SVN-Rev: 33310 --- diff --git a/icu4c/source/test/intltest/callimts.cpp b/icu4c/source/test/intltest/callimts.cpp index a7d9bf5a779..1e9fabde742 100644 --- a/icu4c/source/test/intltest/callimts.cpp +++ b/icu4c/source/test/intltest/callimts.cpp @@ -339,7 +339,13 @@ CalendarLimitTest::doLimitsTest(Calendar& cal, logln((UnicodeString)"(" + i + " days)"); mark += 5000; // 5 sec } - cal.setTime(greg.getTime(status), status); + UDate testMillis = greg.getTime(status); + if ( isICUVersionBefore(52,0,2) ) { // timebomb per #9967, fix with #9972 + if ( uprv_strcmp(cal.getType(), "dangi") == 0 && testMillis >= 1865635198000.0 ) { // stop in Feb 2029, end of dangi 4361 + continue; + } + } + cal.setTime(testMillis, status); cal.setMinimalDaysInFirstWeek(1); if (failure(status, "Calendar set/getTime")) { return;