From d26503583002dabef2e8cfaf7570bbfa066ef4e1 Mon Sep 17 00:00:00 2001 From: Jeff Genovy <29107334+jefgen@users.noreply.github.com> Date: Fri, 7 Apr 2017 08:35:10 +0000 Subject: [PATCH] ICU-13102 - Add logging to intltest in verbose mode (format/TimeZoneTest/TestGenericAPI) to report the offsets. X-SVN-Rev: 40004 --- icu4c/source/test/intltest/tztest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/icu4c/source/test/intltest/tztest.cpp b/icu4c/source/test/intltest/tztest.cpp index 1e2e01de149..3ab04d20649 100644 --- a/icu4c/source/test/intltest/tztest.cpp +++ b/icu4c/source/test/intltest/tztest.cpp @@ -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; -- 2.40.0