mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-27 19:17:06 +08:00
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.
This commit is contained in:
committed by
Vadim Zeitlin
parent
01ca081d57
commit
6d8b1d4c14
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user