summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* a bit warning cleaning in the testsMarkus Mohrhard2012-06-161-0/+4
| | | | -Werror -Wall -Wextra now works in make and in make check
* examples/examples2008.sln: Fixed compilation issue in debugBaptiste Lepilleur2009-11-241-415/+415
| | | | | configuration with VS2008 (due to incorrect configuration being picked up).
* Applied patch #2807259: lib -ldl... should be in LDADD instead of LDFLAGSBaptiste Lepilleur2009-11-234-15/+8
|
* Added updated project and instructions for building under Visual Studio.Net 2008Andy Dent2008-12-1611-0/+7607
|
* Replace deprecated CPPUNIT_TEST_EXCEPTION with code using CPPUNIT_ASSERT_THROW.Steve M. Robbins2008-02-212-2/+2
|
* Changes to suppress warnings of gcc -Wall -W -ansi, mainly from patch [1898225].Steve M. Robbins2008-02-217-18/+18
|
* - removed wrong comment.Baptiste Lepilleur2007-02-251-1/+1
|
* Src/cppunit/TestAssert.Baptiste Lepilleur2007-02-242-3/+42
| | | | | | | | | | | | | | | | | | | 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().
* Add tests of the precision generated bySteve M. Robbins2007-01-315-1/+86
| | | | assertion_traits<double>::toString().
* Remove declaration of unimplemented functions testAssertDoubleNotEquals1 and ↵Steve M. Robbins2007-01-272-2/+6
| | | | | | | | | | testAssertDoubleNotEquals2. * examples/cppunittest/TestAssertTest.cpp: * examples/cppunittest/TestAssertTest.h: Remove declaration of unimplemented functions testAssertDoubleNotEquals1 and testAssertDoubleNotEquals2. Factor new method testAssertDoubleNonFinite out of existing testAssertDoubleEquals.
* Add unit tests for CPPUNIT_ASSERT_DOUBLES_EQUAL() that test withSteve M. Robbins2007-01-271-0/+11
| | | | non-finite values.
* Arrange class initializers in correct order.Steve M. Robbins2007-01-124-10/+10
|
* Put a C++ statement in the first argument of CPPUNIT_ASSERT_THROW()Steve M. Robbins2007-01-121-4/+8
| | | | and CPPUNIT_ASSERT_NO_THROW().
* Fix examples/hierarchy to actually return the result of the tests.Steve M. Robbins2007-01-122-4/+4
| | | | It is expected to fail, so mark it using XFAIL_TESTS in Makefile.am.
* Src/msvc6/TesRunner/TestRunner.Baptiste Lepilleur2006-07-281-9/+9
| | | | | | src/msvc6/TesRunner/TestRunner.rc: * src/msvc6/testpluginrunner/TestPlugInRunner.rc: Fixed bug #1528212 (some resources wrongly tagged as French).
* removed divideByZero test as it cause crashes on some platforms.Baptiste Lepilleur2006-03-042-8/+0
|
* Examples/qt: integrated Ernst patch from qt examples.Baptiste Lepilleur2006-02-0110-36/+438
|
* Integrated Ernst patch for QtTestRunner and Qt 3.Baptiste Lepilleur2005-12-126-23/+76
| | | | | | integrated Ernst patch for QtTestRunner and Qt 3.x. * upgrade QtTestRunner to Qt 3.x * enhanced qmake project files to handle multiple build configuration
* Include/cppunit/config/SourcePrefix.Baptiste Lepilleur2005-11-067-20/+3
| | | | | | | | | | | | | | | | | | include/cppunit/config/SourcePrefix.h: disable warning #4996 (sprintf is deprecated) for visual studio 2005. * include/cppunit/TestAssert.h: use sprintf_s instead of sprintf for visual studio 2005. * examples/ClockerPlugIn/ClockerPlugIn.cpp * examples/DumperPlugIn/DumperPlugIn.cpp: use SourcePrefix.h. Fixed wrong macro usage to implement DllMain. * examples/msvc6/HostApp/ExamplesTestCase.h * examples/msvc6/HostApp/ExamplesTestCase.cpp * examples/simple/ExamplesTestCase.h * examples/simple/ExamplesTestCase.cpp: removed divideByZero test case as it cause some crash on some platforms.
* Removed most warning when compiling with vc++ 6sp6.Baptiste Lepilleur2005-10-132-1/+14
| | | | | removed most warning when compiling with vc++ 6sp6. * added assert equal usage
* removed most warning when compiling with vc++ 6sp6.Baptiste Lepilleur2005-10-1311-43/+53
|
* removed most warning when compiling with vc++ 6sp6.Baptiste Lepilleur2005-10-139-0/+9
|
* Examples/simple/Makefile.am: do not install 'simple' programmBaptiste Lepilleur2005-07-061-1/+1
| | | | (patch #1230784).
* Examples/hierarchy/BoardGameTest.Baptiste Lepilleur2005-02-232-5/+5
| | | | | | | examples/hierarchy/BoardGameTest.h: * examples/hierarchy/ChessTest.h: fixed compilation issue, prefixed access to class member with 'this' (inheriting from template parameter dependent class).
* Include/cppunit/TestAssert.Baptiste Lepilleur2004-11-051-2/+2
| | | | | | | include/cppunit/TestAssert.h: * src/cppunit/TestAssert.cpp: integrated Neil Ferguson patch for missing _MESSAGE assertion variants. Also enhanced the failure message of a few assertions.
* Include/cppunit/Portability.Baptiste Lepilleur2004-06-253-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | include/cppunit/Portability.h: moved OStringStream alias definition to Portability/Stream.h. User need to define EVC4 to indicate that config-evc4.h should be used. (how to we detect this automatically ?). Notes that this means it might be needed to add #include <string> to some headers since its no longer included by Portability.h. * include/cppunit/Portability/Stream.h: define alias OStringStream, stdCOut(), and OFileStream. If CPPUNIT_NO_STREAM is defined (evc4 config), then provides our own implementation (based on sprintf and fwrite). * include/cppunit/config/config-evc4.h: config file for embedded visual c++ 4. Still need to detect for this platform in Portability.h (currently relying on EVC4 being defined...) * *.[cpp/h]: most source files have been impacted with the following change: #include <iostream> -> #include <cppunit/Portability/Stream.h> std::ostream -> CPPUNIT_NS::OStream std::ofstream -> CPPUNIT_NS::OFileStream std::cout -> CPPUNIT_NS::stdCOut() std::endl -> "\n" Also, code using std::cin as been defined out if CPPUNIT_NO_STREAM was defined. The exact list of impact files can be obtain in CVS using tags: TG_CPPUNIT_NO_STREAM_BEFORE & TG_CPPUNIT_NO_STREAM_AFTER.
* Include/cppunit/Portability.Baptiste Lepilleur2004-06-257-25/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | include/cppunit/Portability.h: moved OStringStream alias definition to Portability/Stream.h. User need to define EVC4 to indicate that config-evc4.h should be used. (how to we detect this automatically ?). Notes that this means it might be needed to add #include <string> to some headers since its no longer included by Portability.h. * include/cppunit/Portability/Stream.h: define alias OStringStream, stdCOut(), and OFileStream. If CPPUNIT_NO_STREAM is defined (evc4 config), then provides our own implementation (based on sprintf and fwrite). * include/cppunit/config/config-evc4.h: config file for embedded visual c++ 4. Still need to detect for this platform in Portability.h (currently relying on EVC4 being defined...) * *.[cpp/h]: most source files have been impacted with the following change: #include <iostream> -> #include <cppunit/Portability/Stream.h> std::ostream -> CPPUNIT_NS::OStream std::ofstream -> CPPUNIT_NS::OFileStream std::cout -> CPPUNIT_NS::stdCOut() std::endl -> "\n" Also, code using std::cin as been defined out if CPPUNIT_NO_STREAM was defined. The exact list of impact files can be obtain in CVS using tags: TG_CPPUNIT_NO_STREAM_BEFORE & TG_CPPUNIT_NO_STREAM_AFTER.
* Src/Baptiste Lepilleur2004-06-181-5/+5
| | | | src/*/*.dsp: bug #933154, post build fail in directory with spaces.
* Src/Baptiste Lepilleur2004-06-171-2/+2
| | | | src/*/*.dsp: bug #933154, post build fail in directory with spaces.
* fixing project compilation settings (rtti not always enabled)Baptiste Lepilleur2004-06-167-12/+12
|
* removed usage of std::exception ctor with a string (gcc 2.95 issue)Baptiste Lepilleur2004-03-131-6/+6
|
* Examples/cppunittest/TestAssertTest.Baptiste Lepilleur2004-03-134-56/+101
| | | | | | | | | | | | | | | examples/cppunittest/TestAssertTest.h: * examples/cppunittest/TestAssertTest.cpp: * examples/cppunittest/XmlUniformiserTest.h: * examples/cppunittest/XmlUniformiserTest.cpp: * include/cppunit/TestAssert.h: add the exception assertion macros from cppunit 2: CPPUNIT_ASSERT_THROW, CPPUNIT_ASSERT_NO_THROW, CPPUNIT_ASSERT_ASSERTION_FAIL, CPPUNIT_ASSERT_ASSERTION_PASS. Updated unit test to use and test the new macros. * include/cppunit/extensions/HelperMacros.h: deprecated the test case factory that check for exception (CPPUNIT_TEST_FAIL & CPPUNIT_TEST_EXCEPTION).
* Examples/qt/Main.Baptiste Lepilleur2004-03-133-26/+24
| | | | | | examples/qt/Main.cpp: * examples/qt/ExampleTestCase.h: fixed bug #789672: QT example should use CPPUNIT_NS macro.
* added new linesBaptiste Lepilleur2003-05-073-3/+3
|
* added to .cvsignore:Baptiste Lepilleur2003-05-071-0/+0
| | | | | SunWS_cache ir.out
* Makefile.Baptiste Lepilleur2003-05-071-0/+0
| | | | | | | | | | | | | | | | | | | | | Makefile.am * configure.in * config/ac_dll.m4 * examples/cppunittest/Makefile.am * examples/hierarchy/Makefile.am * examples/money/Makefile.am * examples/simple/Makefile.am * include/cppunit/config/SelectDllLoader.h * include/cppunit/plugin/TestPlugIn.h * include/cppunit/tools/Algorithm.h * src/DllPlugInTester/Makefile.am * src/cppunit/Makefile.am * src/cppunit/TestDecorator.cpp * src/cppunit/ShlDynamicLibraryManager.cpp * src/cppunit/UnixDynamicLibraryManager.cpp * src/cppunit/Win32DynamicLibraryManager.cpp: applied patch from Abdessattar Sassi <abdesassi@users.sourceforge.net> to add support for plug-in to hp-ux (patch #721546).
* Makefile.Baptiste Lepilleur2003-05-074-4/+4
| | | | | | | | | | | | | | | | | | | | | Makefile.am * configure.in * config/ac_dll.m4 * examples/cppunittest/Makefile.am * examples/hierarchy/Makefile.am * examples/money/Makefile.am * examples/simple/Makefile.am * include/cppunit/config/SelectDllLoader.h * include/cppunit/plugin/TestPlugIn.h * include/cppunit/tools/Algorithm.h * src/DllPlugInTester/Makefile.am * src/cppunit/Makefile.am * src/cppunit/TestDecorator.cpp * src/cppunit/ShlDynamicLibraryManager.cpp * src/cppunit/UnixDynamicLibraryManager.cpp * src/cppunit/Win32DynamicLibraryManager.cpp: applied patch from Abdessattar Sassi <abdesassi@users.sourceforge.net> to add support for plug-in to hp-ux.
* include/cppunit/extensions/TestSuiteBuilder.h: removed (unused)Baptiste Lepilleur2003-04-062-6/+6
|
* added missing project fileBaptiste Lepilleur2003-03-151-1/+1
|
* added missing project fileBaptiste Lepilleur2003-03-151-1/+1
|
* Src/msvc6/testrunner/DynamicWindow/cdxCDynamicWndEx.Baptiste Lepilleur2003-03-152-1/+5
| | | | | | | | src/msvc6/testrunner/DynamicWindow/cdxCDynamicWndEx.cpp: * examples/msvc6/CppUnitTestApp/CppUnitTestApp.cpp: * examples/msvc6/HostApp/HostApp.cpp: * src/msvc6/testpluginrunner/TestPlugInRunnerApp.cpp: fixed compatibility issues with vc7 MFC.
* Include/cppunit/tools/Algorithm.Baptiste Lepilleur2003-03-153-3/+3
| | | | | | | | | | | | | | | | include/cppunit/tools/Algorithm.h: * examples/cppunittest/XmlOutputterTest.cpp: * examples/cppunittest/XmlUniformiser.*: * src/cppunit/CompilerOutputter.cpp: * src/cppunit/ProtectorChain.cpp: * src/cppunit/StringTools.cpp: * src/cppunit/TestPath.cpp: * src/cppunit/TypeInfoHelper.cpp: * src/cppunit/XmlElement.cpp: * src/cppunit/XmlOutputter.cpp: * src/DllPlugInTester/CommandLineParser.h: * src/msvc6/testrunner/TestRunnerDlg.cpp: switched to using unsigned index in loop to avoid signed/unsigned warning in vc7.
* Src/cppunit/CompilerOutputter.Baptiste Lepilleur2003-03-151-0/+0
| | | | | | | | | | | | | | src/cppunit/CompilerOutputter.cpp: * src/cppunit/ProtectorChain.cpp: * src/cppunit/StringTools.cpp: * src/cppunit/TestPath.cpp: * src/cppunit/TypeInfoHelper.cpp: * src/cppunit/XmlElement.cpp: * src/cppunit/XmlOutputter.cpp: switched to using unsigned index in loop to avoid signed/unsigned warning in vc7. * include/cppunit/extension/ExceptionTestCaseDecorator.h: removed dll export on template (caused link error on vc7).
* Src/examples/cppunittest/TrackedTestCase.Baptiste Lepilleur2003-03-114-3/+3
| | | | | | | src/examples/cppunittest/TrackedTestCase.cpp: * src/examples/cppunittest/CppUnitTestMain.cpp: * src/examples/money/Money.h: partially applied patch #699794. Fixed compilation issues with Borland C++ 6.
* Src/cppunit/XmlElement.Baptiste Lepilleur2003-03-112-1/+4
| | | | | | src/cppunit/XmlElement.cpp: * src/examples/CppUnitTest/XmlUniformser.cpp: fixed bug #676505 (no space between attributes of XmlElement).
* Config/bb_enable_doxygen.Baptiste Lepilleur2003-03-111-0/+0
| | | | | | config/bb_enable_doxygen.m4: * doc/Makefile.am: applied Luke Dunstan's fix for bug #700730 (spaces not allowed in doxygen path)
* Include/cppunit/tools/Algorithm.Baptiste Lepilleur2003-03-113-4/+2
| | | | | | | | | | | | | | include/cppunit/tools/Algorithm.h: * src/cppunit/TestResult.cpp: * src/msvc6/testrunner/TestRunnerModel.cpp: added removeFromSequence algorithm in Algorithm.h to fix STLPort compatibility issue (std::remove use the one of cstdio instead of algorithm). Bug #694971. * include/cppunit/extensions/TestNamer.h: fixed bug #662666 (missing include for typeinfo). * src/cppunit/TestResult.cpp: TestFailure are no longer passed as temporary, but explicitely instantiated on the stack. Work around AIX compiler bug.
* include/cppunit/TextTestResult.h: added missing dll export forBaptiste Lepilleur2002-12-031-0/+0
| | | | operator << (bug #610119).
* src/src/msvc6/testrunner/DynamicWindow/cdxCDynamicWnd.cpp: added call toBaptiste Lepilleur2002-12-021-0/+0
| | | | | IsUp() in cdxCDynamicWnd::DoOnGetMinMaxInfo() before calling GetBorderSize() which caused an assertion. Bug #643612.
* Include/cppunit/plugin/DynamicLibraryManagerException.Baptiste Lepilleur2002-12-028-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | include/cppunit/plugin/DynamicLibraryManagerException.h: added constructor to fix compilation issues on recents version of gcc and sun CC (bug #619059) * include/cppunit/input/XmlInputHelper.h: added. * include/cppunit/extensions/TestSuiteBuilderContext.h: * src/cppunit/TestSuiteBuilderContext.cpp: added addProperty() and getStringProperty(). Added macros CPPUNIT_TEST_SUITE_PROPERTY. * src/msvc6/testrunner/TestRunnerDlg.cpp: integrated Tim Threlkeld's bug fix #610162: browse button was disabled if history was empty. * src/msvc6/testrunner/DynamicWindow/cdxCSizeIconCtrl.cpp: integrated Tim Threlkeld's bug fix #610191: common control were not initialized. * include/cppunit/extensions/ExceptionTestCaseDecorator.h: bug #603172, missing Message construction. * src/cppunit/DefaultProtector.cpp: bug #603172. Fixed missing ';'. * src/cppunit/TestCase.cpp: bug #603671. Removed unguarded typeinfo include. * examples/cppunittests/*Suite.h: bug #603666. Added missing Portability.h include.