Use different sections for wxDateTime DST test

Try to make it more clear where exactly does it fail on buildbot.
This commit is contained in:
Vadim Zeitlin
2017-11-28 23:40:51 +01:00
parent efb8d82c8a
commit 13c3b5cbd1

View File

@@ -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