X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/425eee416409ae654df52a7f77d417eb176817de..7d605004a217d4f4ef674d7edf073982d8931995:/tests/datetime/datetimetest.cpp?ds=sidebyside diff --git a/tests/datetime/datetimetest.cpp b/tests/datetime/datetimetest.cpp index 3e26e83549..48611e4480 100644 --- a/tests/datetime/datetimetest.cpp +++ b/tests/datetime/datetimetest.cpp @@ -761,14 +761,14 @@ void DateTimeTestCase::TestTimeTicks() // GetValue() returns internal UTC-based representation, we need to // convert it to local TZ before comparing - long ticks = (dt.GetValue() / 1000).ToLong() + TZ_LOCAL.GetOffset(); + time_t ticks = (dt.GetValue() / 1000).ToLong() + TZ_LOCAL.GetOffset(); if ( dt.IsDST() ) ticks += 3600; - WX_ASSERT_TIME_T_EQUAL( d.gmticks, ticks + tzOffset ); + CPPUNIT_ASSERT_EQUAL( d.gmticks, ticks + tzOffset ); dt = d.DT().FromTimezone(wxDateTime::UTC); ticks = (dt.GetValue() / 1000).ToLong(); - WX_ASSERT_TIME_T_EQUAL( d.gmticks, ticks ); + CPPUNIT_ASSERT_EQUAL( d.gmticks, ticks ); } }