changeset 40917:22ce5e78e152

8164939: GTest LogDecorations.iso8601_time_test fails on macOS Reviewed-by: sla, dsamersoff
author mlarsson
date Wed, 31 Aug 2016 09:38:46 +0200
parents 77358f230cf0
children 4b0a28b0ed28
files hotspot/test/native/logging/test_logDecorations.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;