summaryrefslogtreecommitdiff
path: root/src
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-018-26/+26
|
* tdf#116653, avoid NOMINMAX redefinition warnings with mingwMarkus Mohrhard2018-04-021-0/+2
|
* more windows visual studio packaging fixescppunit-1.14.0Markus Mohrhard2017-04-131-1/+1
|
* package visual studio project filesMarkus Mohrhard2017-04-131-1/+1
|
* remove BeOS special supportMarkus Mohrhard2017-04-134-52/+0
|
* remove more msvc specific code and bc5 stuffMarkus Mohrhard2017-04-1398-13471/+0
|
* remove the qt test runner that depends on ancient qtMarkus Mohrhard2017-04-1332-2626/+0
|
* fix HTML Encodingdennisroczek2017-04-071-1/+1
| | | | | | | | | | in my last commit Gerrit's web interface changed the encoding of the file. The page doesn't look correct any more. Change-Id: I5de59620ef4ca78a009da2bbf2c6fe37af0dd54c Reviewed-on: https://gerrit.libreoffice.org/35401 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* fix typo/grammar: "the the" --> thedennisroczek2017-03-143-27/+25
| | | | | | | Change-Id: I03c1e1118c0574863f9460d1d7fc543b44d59efe Reviewed-on: https://gerrit.libreoffice.org/35152 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* fix the distcheck build and remove refs to deleted filesMarkus Mohrhard2017-01-012-2/+2
|
* 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-162-2/+2
|
* drop project files for Visual Studio < 2010David Tardon2016-12-1617-11456/+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-1111-102/+12
|
* 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
|
* fix crash with WIN64 in testrunnerMarkus Mohrhard2014-07-171-2/+2
| | | | Reported by: Peter Tax
* 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-256-0/+1143
|
* allow compiling the cppunit solution as 64bit with MSVCMarkus Mohrhard2013-05-254-5/+5
|
* 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-067-2/+1792
|\ \ | |/ | | | | | | | | | | | | | | Conflicts: .gitignore autogen.sh configure.in doc/Makefile.am examples/cppunittest/TestAssertTest.cpp
| * the 2005 project is not usefull, problems with the existing vcproj filesMarkus Mohrhard2012-06-221-99/+0
| |
| * add the remaining missing filesMarkus Mohrhard2012-06-215-0/+1689
| |
| * add visual studio 2005 and 2010 project files to build cppunit libsMarkus Mohrhard2012-06-212-0/+198
| |
| * fix visual studio 2005 buildMarkus Mohrhard2012-06-211-2/+4
| |
* | 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
* | Add the quirks to produce same config.h as previouslyTomas Chvatal2012-04-251-0/+1
| |
* | Add new autoconf using the latest macrosTomas Chvatal2012-04-251-1/+1
|/ | | | | | | | | This add new macros from autoconf-archive instead of the old broken ones. Also cleans up the configure.in and moves it to configure.ac. This setup as-is is not working. Next step is checking config.h to contain same contend for before/after update.
* 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