add a special macro for comparing time_t values to fix unit test compilation on platforms with 64 bit time_t (such as FreeBSD 6.2 apparently)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -737,11 +737,11 @@ void DateTimeTestCase::TestTimeTicks()
|
||||
// ignore DST, the test data already takes it into account
|
||||
dt.MakeTimezone(TZ_TEST, true);
|
||||
long ticks = (dt.GetValue() / 1000).ToLong();
|
||||
CPPUNIT_ASSERT_EQUAL( d.ticks, ticks + tzOffset );
|
||||
WX_ASSERT_TIME_T_EQUAL( d.ticks, ticks + tzOffset );
|
||||
|
||||
dt = d.DT().FromTimezone(wxDateTime::UTC);
|
||||
ticks = (dt.GetValue() / 1000).ToLong();
|
||||
CPPUNIT_ASSERT_EQUAL( d.gmticks, ticks );
|
||||
WX_ASSERT_TIME_T_EQUAL( d.gmticks, ticks );
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user