ICU-7008 Skip testing Asia/Amman in VTimeZone round trip test for now.

X-SVN-Rev: 26153
This commit is contained in:
Yoshito Umaoka 2009-06-24 03:23:46 +00:00
parent 771dda07f2
commit 34f50d9180

View file

@ -25,6 +25,8 @@
#define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)""); test(); } break
#define HOUR (60*60*1000)
static const UVersionInfo ICU_432 = {4,3,2,0};
static const char *const TESTZIDS[] = {
"AGT",
"America/New_York",
@ -773,6 +775,12 @@ TimeZoneRuleTest::TestVTimeZoneRoundTrip(void) {
errln("FAIL: error returned while enumerating timezone IDs.");
break;
}
if (!isICUVersionAtLeast(ICU_432)) {
// See ticket#7008
if (*tzid == UnicodeString("Asia/Amman")) {
continue;
}
}
BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid);
VTimeZone *vtz_org = VTimeZone::createVTimeZoneByID(*tzid);
vtz_org->setTZURL("http://source.icu-project.org/timezone");
@ -866,6 +874,12 @@ TimeZoneRuleTest::TestVTimeZoneRoundTripPartial(void) {
errln("FAIL: error returned while enumerating timezone IDs.");
break;
}
if (!isICUVersionAtLeast(ICU_432)) {
// See ticket#7008
if (*tzid == UnicodeString("Asia/Amman")) {
continue;
}
}
BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid);
VTimeZone *vtz_org = VTimeZone::createVTimeZoneByID(*tzid);
VTimeZone *vtz_new = NULL;