From efb8d82c8a465ef247b03f2d5660ccfe0fbf0706 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 28 Nov 2017 23:18:43 +0100 Subject: [PATCH] Provide more information if wxDateTime DST test fails Show the original date and the date after modification. --- tests/datetime/datetimetest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/datetime/datetimetest.cpp b/tests/datetime/datetimetest.cpp index 1d8902a6ba..fb9c281723 100644 --- a/tests/datetime/datetimetest.cpp +++ b/tests/datetime/datetimetest.cpp @@ -1588,6 +1588,7 @@ static void DoTestSetFunctionsOnDST(const wxDateTime &orig) { \ wxDateTime copy = orig; \ copy.func; \ + INFO("Original date=" << orig << ", modified=" << copy); \ CHECK(orig.IsDST() == copy.IsDST()); \ CHECK(orig.GetHour() == copy.GetHour()); \ } @@ -1612,6 +1613,7 @@ static void DoTestSetFunctionsOnDST(const wxDateTime &orig) // Special case for set hour since it's ambiguous at DST we don't care if IsDST matches wxDateTime copy = orig; copy.SetHour(orig.GetHour()); + INFO("Original date=" << orig << ", modified=" << copy); CHECK(orig.GetHour() == copy.GetHour()); } #undef DST_TEST_FUN