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:
Jeff Genovy 2017-04-07 08:35:10 +00:00
parent a9d8f8b76a
commit d265035830

View File

@ -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;