8164939: GTest LogDecorations.iso8601_time_test fails on macOS
authormlarsson
Wed, 31 Aug 2016 09:38:46 +0200
changeset 40917 22ce5e78e152
parent 40916 77358f230cf0
child 40918 4b0a28b0ed28
8164939: GTest LogDecorations.iso8601_time_test fails on macOS Reviewed-by: sla, dsamersoff
hotspot/test/native/logging/test_logDecorations.cpp
--- a/hotspot/test/native/logging/test_logDecorations.cpp	Tue Aug 30 21:35:56 2016 +0300
+++ b/hotspot/test/native/logging/test_logDecorations.cpp	Wed Aug 31 09:38:46 2016 +0200
@@ -144,7 +144,7 @@
   reported_time.tm_hour = h;
   reported_time.tm_min = m;
   reported_time.tm_sec = s;
-  reported_time.tm_isdst = daylight;
+  reported_time.tm_isdst = -1; // let mktime deduce DST settings
   time_t reported_ts = mktime(&reported_time);
   expected_ts = mktime(localtime(&expected_ts));
   time_t diff = reported_ts - expected_ts;