From 82e3944ff25ff62ba6d35d06ae303b0c9b2df4fa Mon Sep 17 00:00:00 2001 From: abitmore Date: Thu, 2 Jul 2020 08:47:45 -0400 Subject: [PATCH] Update time_test to get around a boost 1.60 issue --- tests/time_test.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/time_test.cpp b/tests/time_test.cpp index 4c45720..9d599eb 100644 --- a/tests/time_test.cpp +++ b/tests/time_test.cpp @@ -33,8 +33,10 @@ BOOST_AUTO_TEST_CASE(time_point_sec_test) BOOST_CHECK_EQUAL( "20380119T031407", tp2gm1.to_non_delimited_iso_string() ); time_point_sec tp2g(0x80000000U); - BOOST_CHECK_EQUAL( "2038-01-19T03:14:08", tp2g.to_iso_string() ); - BOOST_CHECK_EQUAL( "20380119T031408", tp2g.to_non_delimited_iso_string() ); + if (BOOST_VERSION != BOOST_VERSION_NUMBER(1,60,0)) { + BOOST_CHECK_EQUAL( "2038-01-19T03:14:08", tp2g.to_iso_string() ); + BOOST_CHECK_EQUAL( "20380119T031408", tp2g.to_non_delimited_iso_string() ); + } time_point_sec tp3g(0xc0000000U); if (BOOST_VERSION >= BOOST_VERSION_NUMBER(1,64,0)) {