X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3dd4d0ec9e6ccfe8a9e6e892ca21a67e1fb1b225..5f9e369af0c834bbde0f7f5d2047abd736967f58:/tests/longlong/longlongtest.cpp diff --git a/tests/longlong/longlongtest.cpp b/tests/longlong/longlongtest.cpp index f8bbc6c5f5..aaad64c942 100644 --- a/tests/longlong/longlongtest.cpp +++ b/tests/longlong/longlongtest.cpp @@ -3,7 +3,6 @@ // Purpose: wxLongLong unit test // Author: Vadim Zeitlin, Wlodzimierz ABX Skiba // Created: 2004-04-01 -// RCS-ID: $Id$ // Copyright: (c) 2004 Vadim Zeitlin, Wlodzimierz Skiba /////////////////////////////////////////////////////////////////////////////// @@ -88,7 +87,7 @@ private: // register in the unnamed registry so that these tests are run by default CPPUNIT_TEST_SUITE_REGISTRATION( LongLongTestCase ); -// also include in it's own registry so that these tests can be run alone +// also include in its own registry so that these tests can be run alone CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( LongLongTestCase, "LongLongTestCase" ); LongLongTestCase::LongLongTestCase() @@ -341,6 +340,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::is_specialized ); CPPUNIT_ASSERT( std::numeric_limits::is_specialized ); @@ -348,6 +350,7 @@ void LongLongTestCase::Limits() wxULongLong maxval = std::numeric_limits::max(); CPPUNIT_ASSERT( maxval.ToDouble() > 0 ); #endif // wxUSE_LONGLONG_NATIVE +#endif // !__VISUALC6__ } #endif // wxUSE_LONGLONG