]> granicus.if.org Git - icu/commitdiff
ICU-9967 Timebomb some test values for Dangi cal limits test, to be fixed with #9972
authorPeter Edberg <pedberg@unicode.org>
Sat, 23 Feb 2013 01:38:04 +0000 (01:38 +0000)
committerPeter Edberg <pedberg@unicode.org>
Sat, 23 Feb 2013 01:38:04 +0000 (01:38 +0000)
X-SVN-Rev: 33310

icu4c/source/test/intltest/callimts.cpp

index a7d9bf5a7799c0595a014f213ef9407778367ea2..1e9fabde7428d55de6c26c96e2ab8b12ca5b3fb0 100644 (file)
@@ -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;