summaryrefslogtreecommitdiff
path: root/src/cppunit
Commit message (Collapse)AuthorAgeFilesLines
* Introduce CPPUNIT_PROPAGATE_EXCEPTIONS environment variableStephan Bergmann2022-12-131-1/+3
| | | | | | | | | | | | | Often a developer debugging a failing CppUnit test wants a core dump with the place where an uncaught exception is thrown. So if the newly introduced CPPUNIT_PROPAGATE_EXCEPTIONS environment variable is set (to any value), disable the DefaultProtector that would otherwise catch such exceptions (and just report some limited information about them). Change-Id: Iac0e98837381578759384e45829fb4e2436f450a Reviewed-on: https://gerrit.libreoffice.org/c/cppunit/+/144074 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
* Run tests in deterministic orderStephan Bergmann2022-04-111-1/+9
| | | | | | | | | | | | | LibreOffice already benefits from this (see <https://git.libreoffice.org/core/+/2f2246d22e2a8ccbc1dc3e6f5243734a61edf270%5E!> "external/cppunit: Run tests in deterministic order", especially as otherwise the order in which tests happened to get run differed between --disable-lto and --enable-lto builds. Change-Id: I87d6d7cb0f4c2f6a0ea1ac3ba3d48b4e089eb5c7 Reviewed-on: https://gerrit.libreoffice.org/c/cppunit/+/123963 Tested-by: Stephan Bergmann <sbergman@redhat.com> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* remove a few trailing whitespacesMarkus Mohrhard2021-10-011-6/+6
|
* avoid a few annoying compiler warningsFlorian Becker2021-10-012-2/+0
|
* replace 0 with nullptr when assigning to a pointerFlorian Becker2021-10-012-3/+3
|
* get rid of old casting macrosMarkus Mohrhard2021-10-012-5/+5
|
* switch from throw() to noexceptFlorian Becker2021-10-012-3/+3
|
* add override annotationsFlorian Becker2021-10-014-5/+5
|
* add missing [[noreturn]] attributesFlorian Becker2021-10-011-6/+6
|
* Replace NULL with nullptrFlorian Becker2021-10-017-14/+14
|
* tdf#116653, avoid NOMINMAX redefinition warnings with mingwMarkus Mohrhard2018-04-021-0/+2
|
* package visual studio project filesMarkus Mohrhard2017-04-131-1/+1
|
* remove BeOS special supportMarkus Mohrhard2017-04-134-52/+0
|
* fix the distcheck build and remove refs to deleted filesMarkus Mohrhard2017-01-011-1/+1
|
* implement parameterized testsMarkus Mohrhard2016-12-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This allows to execute the same test with different parameters and treats each execution as an own test. The change consists of two parts, the TestCaller can now handle any callable which also makes it easy to generate programatically more complex test cases as well as the new CPPUNIT_TEST_PARAMETERIZED macro. That macro takes the test name as well as an iteratable, e.g. std::initializer_list. An example for this usage is: class SimpleTest : public CppUnit::TestFixture { public: CPPUNIT_TEST_SUITE(SimpleTest); CPPUNIT_TEST_PARAMETERIZED(test, {1, 2, 3, 4}); CPPUNIT_TEST_SUITE_END(); void test(int i) { CPPUNIT_ASSERT(i < 5); } }; which will execute test 4 times with the values 1 to 4.
* AM_CPPFLAGS is preferred by "newer" versions of automakeDavid Tardon2016-12-161-1/+1
|
* drop project files for Visual Studio < 2010David Tardon2016-12-164-4644/+0
|
* tdf#104498 CPPUNIT_USE_TYPEINFO_NAME is a flagDavid Tardon2016-12-162-2/+2
| | | | ... so check just for existence.
* we no longer need a wrapper for the smart pointer caseMarkus Mohrhard2016-12-151-3/+2
|
* remove support for old broken C++ compilersMarkus Mohrhard2016-12-119-98/+8
|
* we always require RTTI nowMarkus Mohrhard2016-10-152-17/+0
| | | | | RTTI is supported by any decent compiler and with the mandatory c++11 support we are no longer supporting older compilers anyway.
* add a flag for adding optional featuresMarkus Mohrhard2015-11-071-2/+3
| | | | | | These features will switch the used C++ version from C++03 to C++11. We are also going to use std::unique_ptr instead of std::auto_ptr for the c++11 mode.
* extend tell coverity that fail doesn't returnCaolán McNamara2014-11-031-0/+1
|
* add new assertion macros for <, <=, > and >=Markus Mohrhard2014-07-131-11/+105
| | | | | | | | | Now we support the following new macros: - CPPUNIT_ASSERT_LESS - CPPUNIT_ASSERT_GREATER - CPPUNIT_ASSERT_LESSEQUAL - CPPUNIT_ASSERT_GREATEREQUAL
* tell coverity that fail doesn't returnCaolán McNamara2014-07-061-1/+1
|
* -Werror,-Wbind-to-temporary-copyStephan Bergmann2013-08-161-4/+0
| | | | | | "C++98 requires an accessible copy constructor for class 'CppUnit::TestCaseMethodFunctor' when binding a reference to a temporary; was private." (Clang)
* Bug # 51154: cppunit warning cleaningTobias Lippert2013-08-1519-19/+60
| | | | | | | | | | | | This patch allows to compile the code with gcc's -Weffc++ It consists mostly of making copy constructors and assignment operators explicit and private, and of initializing all members in initializer lists. Change-Id: I6f1cae812c58e3791c2386a1288501cf2f559610 Reviewed-on: https://gerrit.libreoffice.org/5424 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
* report dlerror messages on unixMarkus Mohrhard2013-05-251-1/+5
| | | | Upstream Libreoffice patch.
* add configuration for 64bit windows buildsMarkus Mohrhard2013-05-252-0/+234
|
* workaround problem when mxing older gcc with newer versions, fdo#52539Andriy Gapon2012-08-141-3/+6
|
* Merge branch 'master' into feature/buildsystem_rewritefeature/buildsystem_rewriteTomas Chvatal2012-08-111-3/+11
|\ | | | | | | | | Conflicts: config/ax_cxx_gcc_abi_demangle.m4
| * use portable way to access free, fdo#52536Markus Mohrhard2012-08-071-1/+1
| |
| * don't crash if demangling fails, fdo#52539Markus Mohrhard2012-08-071-2/+10
| |
* | Merge branch 'master' into feature/buildsystem_rewriteTomas Chvatal2012-08-062-0/+597
|\ \ | |/ | | | | | | | | | | | | | | Conflicts: .gitignore autogen.sh configure.in doc/Makefile.am examples/cppunittest/TestAssertTest.cpp
| * add the remaining missing filesMarkus Mohrhard2012-06-212-0/+597
| |
* | try to fix problem with ISO c++ function vs object pointerMarkus Mohrhard2012-04-251-2/+3
|/ | | | http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#195
* Fix as-needed build.Tomas Chvatal2012-02-241-0/+1
|
* upstream libreoffice patch for sf#3123759Markus Mohrhard2012-01-281-1/+1
| | | | | based on a debian patch from http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=cppunit.diff;att=1;bug=338252
* upstream libreoffice patch related to rhbz#641350Markus Mohrhard2012-01-271-0/+4
| | | | impl. destructor of Cppunit::Message causes segfault when test
* Config/ax_cxx_gcc_abi_demangle.Baptiste Lepilleur2009-11-241-0/+1
| | | | | config/ax_cxx_gcc_abi_demangle.m4: * src/cppunit/TypeInfoHelper.cpp: Fixed demangling of symbols on gcc 4.3 (bug #2796543).
* Flush stdout & stderr in TestResult destructor to avoid message loss (bug ↵Baptiste Lepilleur2009-11-241-0/+3
| | | | #2832029)
* Added updated project and instructions for building under Visual Studio.Net 2008Andy Dent2008-12-162-0/+3335
|
* Bug 1649369: Flush stdCOut after startTest() and addFailure(). Fix from the ↵Steve M. Robbins2008-10-111-0/+2
| | | | supplied flush patch.
* Changes to suppress warnings of gcc -Wall -W -ansi, mainly from patch [1898225].Steve M. Robbins2008-02-216-23/+23
|
* Src/cppunit/TestAssert.Baptiste Lepilleur2007-02-242-17/+20
| | | | | | | | | | | | | | | | | | | 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().
* Apply patch to fix [ 1293903 ] UNICODE Builds not supportedSteve M. Robbins2007-01-271-5/+5
|
* Account for non-finite values in assertDoubleEquals().Steve M. Robbins2007-01-271-6/+20
| | | | | | Conditional inclusion of cmath rather than math.h removed since (1) it was never used as HAVE_CMATH is never defined, and (2) cmath may move isfinite() into namespace std.
* Arrange class initializers in correct order.Steve M. Robbins2007-01-124-8/+8
|
* Include/cppunit/ui/text/TextTestRunner.Baptiste Lepilleur2006-06-291-0/+8
| | | | | | include/cppunit/ui/text/TextTestRunner.h * src/cppunit/TextTestRunner.cpp: applied patch #1210013 to remove hidden virtual function warning.
* removed most warning when compiling with vc++ 6sp6.Baptiste Lepilleur2005-10-132-4/+4
|