From 6d8b1d4c143ddb00ee887f304ddecaf97d1c7a08 Mon Sep 17 00:00:00 2001 From: Lauri Nurmi Date: Mon, 25 Mar 2024 10:48:52 +0200 Subject: [PATCH] Enable TestTimeTicks() for dates between 1970 and Y2K38 TestTimeTicks() checks were skipped for test dates with gmticks == -1, ensure that these tests really run by providing the expected ticks values. See #24442. --- tests/datetime/datetimetest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/datetime/datetimetest.cpp b/tests/datetime/datetimetest.cpp index b377f0656f..c1f156038d 100644 --- a/tests/datetime/datetimetest.cpp +++ b/tests/datetime/datetimetest.cpp @@ -180,10 +180,10 @@ struct Date static const Date testDates[] = { { 1, wxDateTime::Jan, 1970, 00, 00, 00, 2440587.5, wxDateTime::Thu, 0 }, - { 7, wxDateTime::Feb, 2036, 00, 00, 00, 2464730.5, wxDateTime::Thu, -1 }, - { 8, wxDateTime::Feb, 2036, 00, 00, 00, 2464731.5, wxDateTime::Fri, -1 }, - { 1, wxDateTime::Jan, 2037, 00, 00, 00, 2465059.5, wxDateTime::Thu, -1 }, - { 1, wxDateTime::Jan, 2038, 00, 00, 00, 2465424.5, wxDateTime::Fri, -1 }, + { 7, wxDateTime::Feb, 2036, 00, 00, 00, 2464730.5, wxDateTime::Thu, 2085955200LL }, + { 8, wxDateTime::Feb, 2036, 00, 00, 00, 2464731.5, wxDateTime::Fri, 2086041600LL }, + { 1, wxDateTime::Jan, 2037, 00, 00, 00, 2465059.5, wxDateTime::Thu, 2114380800LL }, + { 1, wxDateTime::Jan, 2038, 00, 00, 00, 2465424.5, wxDateTime::Fri, 2145916800LL }, { 1, wxDateTime::Jan, 2044, 00, 00, 00, 2467615.5, wxDateTime::Fri, 2335219200LL }, { 21, wxDateTime::Jan, 2222, 00, 00, 00, 2532648.5, wxDateTime::Mon, 7954070400LL }, { 29, wxDateTime::May, 1976, 12, 00, 00, 2442928.0, wxDateTime::Sat, 202219200 },