From 13c3b5cbd194075d2ac7f0582ea07be4ad2d2e86 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 28 Nov 2017 23:40:51 +0100 Subject: [PATCH] Use different sections for wxDateTime DST test Try to make it more clear where exactly does it fail on buildbot. --- tests/datetime/datetimetest.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/datetime/datetimetest.cpp b/tests/datetime/datetimetest.cpp index fb9c281723..73983d8c09 100644 --- a/tests/datetime/datetimetest.cpp +++ b/tests/datetime/datetimetest.cpp @@ -1628,10 +1628,15 @@ TEST_CASE("wxDateTime::SetOnDST", "[datetime][dst]") return; } - // End DST is the 2nd 1am after DST ends so go back an hour to the first 1am - DoTestSetFunctionsOnDST(dst - wxTimeSpan::Hour()); + SECTION("An hour before DST end") + { + DoTestSetFunctionsOnDST(dst - wxTimeSpan::Hour()); + } - DoTestSetFunctionsOnDST(dst); + SECTION("At DST end") + { + DoTestSetFunctionsOnDST(dst); + } } #endif // wxUSE_DATETIME