]> git.saurik.com Git - wxWidgets.git/commitdiff
Disable numeric_limits<wxLongLong> test for VC6.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 27 Apr 2011 18:44:11 +0000 (18:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 27 Apr 2011 18:44:11 +0000 (18:44 +0000)
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

tests/longlong/longlongtest.cpp

index f8bbc6c5f51dd205bc0b1f7208925e1de97d69da..9e6400c775234e1debfeb5bdaf4ee6065a0214bf 100644 (file)
@@ -341,6 +341,9 @@ void LongLongTestCase::LoHi()
 
 void LongLongTestCase::Limits()
 {
+    // VC6 doesn't specialize numeric_limits<> for __int64 so skip this test
+    // for it.
+#ifndef __VISUALC6__
 #if wxUSE_LONGLONG_NATIVE
     CPPUNIT_ASSERT( std::numeric_limits<wxLongLong>::is_specialized );
     CPPUNIT_ASSERT( std::numeric_limits<wxULongLong>::is_specialized );
@@ -348,6 +351,7 @@ void LongLongTestCase::Limits()
     wxULongLong maxval = std::numeric_limits<wxULongLong>::max();
     CPPUNIT_ASSERT( maxval.ToDouble() > 0 );
 #endif // wxUSE_LONGLONG_NATIVE
+#endif // !__VISUALC6__
 }
 
 #endif // wxUSE_LONGLONG