Disable numeric_limits<wxLongLong> test for VC6.
VC6 doesn't specialize numeric_limits<> for its __int64 so it's not specialized for wxLongLong neither when using this compiler. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -341,6 +341,9 @@ void LongLongTestCase::LoHi()
|
|||||||
|
|
||||||
void LongLongTestCase::Limits()
|
void LongLongTestCase::Limits()
|
||||||
{
|
{
|
||||||
|
// VC6 doesn't specialize numeric_limits<> for __int64 so skip this test
|
||||||
|
// for it.
|
||||||
|
#ifndef __VISUALC6__
|
||||||
#if wxUSE_LONGLONG_NATIVE
|
#if wxUSE_LONGLONG_NATIVE
|
||||||
CPPUNIT_ASSERT( std::numeric_limits<wxLongLong>::is_specialized );
|
CPPUNIT_ASSERT( std::numeric_limits<wxLongLong>::is_specialized );
|
||||||
CPPUNIT_ASSERT( std::numeric_limits<wxULongLong>::is_specialized );
|
CPPUNIT_ASSERT( std::numeric_limits<wxULongLong>::is_specialized );
|
||||||
@@ -348,6 +351,7 @@ void LongLongTestCase::Limits()
|
|||||||
wxULongLong maxval = std::numeric_limits<wxULongLong>::max();
|
wxULongLong maxval = std::numeric_limits<wxULongLong>::max();
|
||||||
CPPUNIT_ASSERT( maxval.ToDouble() > 0 );
|
CPPUNIT_ASSERT( maxval.ToDouble() > 0 );
|
||||||
#endif // wxUSE_LONGLONG_NATIVE
|
#endif // wxUSE_LONGLONG_NATIVE
|
||||||
|
#endif // !__VISUALC6__
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxUSE_LONGLONG
|
#endif // wxUSE_LONGLONG
|
||||||
|
Reference in New Issue
Block a user