ICU-13102 - Add logging to intltest in verbose mode (format/TimeZoneTest/TestGenericAPI) to report the offsets.
X-SVN-Rev: 40004
This commit is contained in:
parent
a9d8f8b76a
commit
d265035830
@ -138,8 +138,11 @@ TimeZoneTest::TestGenericAPI()
|
||||
}
|
||||
|
||||
TimeZone* hostZone = TimeZone::detectHostTimeZone();
|
||||
int32_t hostZoneRawOffset = hostZone->getRawOffset();
|
||||
logln("hostZone->getRawOffset() = %d , tzoffset = %d", hostZoneRawOffset, tzoffset * (-1000));
|
||||
|
||||
/* Host time zone's offset should match the offset returned by uprv_timezone() */
|
||||
if (hostZone->getRawOffset() != tzoffset * (-1000)) {
|
||||
if (hostZoneRawOffset != tzoffset * (-1000)) {
|
||||
errln("FAIL: detectHostTimeZone()'s raw offset != host timezone's offset");
|
||||
}
|
||||
delete hostZone;
|
||||
|
Loading…
Reference in New Issue
Block a user