| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
... so check just for existence.
|
| |
|
| |
|
|
|
|
|
| |
RTTI is supported by any decent compiler and with the mandatory c++11 support
we are no longer supporting older compilers anyway.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Reported by: Peter Tax
|
|
|
|
|
|
|
|
|
| |
Now we support the following new macros:
- CPPUNIT_ASSERT_LESS
- CPPUNIT_ASSERT_GREATER
- CPPUNIT_ASSERT_LESSEQUAL
- CPPUNIT_ASSERT_GREATEREQUAL
|
| |
|
|
|
|
|
|
| |
"C++98 requires an accessible copy constructor for class
'CppUnit::TestCaseMethodFunctor' when binding a reference to a temporary; was
private." (Clang)
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Upstream Libreoffice patch.
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| | |
Conflicts:
config/ax_cxx_gcc_abi_demangle.m4
|
| | |
|
| | |
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
.gitignore
autogen.sh
configure.in
doc/Makefile.am
examples/cppunittest/TestAssertTest.cpp
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#195
|
| | |
|
|/
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
based on a debian patch from
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=cppunit.diff;att=1;bug=338252
|