[Cppunit-cvs] cppunit/include/cppunit/config config-evc4.h, 1.2, 1.3 config-msvc6.h, 1.10, 1.11
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2007-02-24 21:13:12
|
Update of /cvsroot/cppunit/cppunit/include/cppunit/config In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv9552/include/cppunit/config Modified Files: config-evc4.h config-msvc6.h Log Message: * src/cppunit/TestAssert.cpp (assertDoubleEquals): Moved finite & NaN tests to include/cppunit/portability/FloatingPoint.h. Changed implementation assertDoubleEquals to explicitly test for NaN in case of non-finite values to force equality failure in the presence of NaN. Previous implementation failed on Microsoft Visual Studio 6 (on this platform: NaN == NaN). * examples/cppunittest/TestAssertTest.cpp: Add more unit tests to test the portable floating-point primitive. Added missing include <limits>. * include/cppunit/portability/Makefile.am: * include/cppunit/portability/FloatingPoint.h: Added file. Extracted isfinite() from TestAssert.cpp. * include/cppunit/config-evc4: * include/cppunit/config-msvc6: Added support for _finite(). Index: config-evc4.h =================================================================== RCS file: /cvsroot/cppunit/cppunit/include/cppunit/config/config-evc4.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** config-evc4.h 25 Jun 2004 12:15:24 -0000 1.2 --- config-evc4.h 24 Feb 2007 21:13:04 -0000 1.3 *************** *** 61,64 **** --- 61,69 ---- #endif + /* define to 1 if the compiler has _finite() */ + #ifndef CPPUNIT_HAVE__FINITE + #define CPPUNIT_HAVE__FINITE 1 + #endif + // Uncomment to turn on STL wrapping => use this to test compilation. // This will make CppUnit subclass std::vector & co to provide default Index: config-msvc6.h =================================================================== RCS file: /cvsroot/cppunit/cppunit/include/cppunit/config/config-msvc6.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** config-msvc6.h 30 Jul 2005 07:02:38 -0000 1.10 --- config-msvc6.h 24 Feb 2007 21:13:04 -0000 1.11 *************** *** 65,68 **** --- 65,73 ---- #define CPPUNIT_HAVE_CPP_CAST 1 + /* define to 1 if the compiler has _finite() */ + #ifndef CPPUNIT_HAVE__FINITE + #define CPPUNIT_HAVE__FINITE 1 + #endif + // Uncomment to turn on STL wrapping => use this to test compilation. |