<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cppunit.git/include/cppunit/extensions, branch cppunit-1.15.0</title>
<subtitle>anongit.freedesktop.org: git/libreoffice/cppunit.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cppunit.git/'/>
<entry>
<title>extensions: add CPPUNIT_TEST_FIXTURE()</title>
<updated>2018-11-02T05:03:13+00:00</updated>
<author>
<name>Miklos Vajna</name>
<email>vmiklos@collabora.co.uk</email>
</author>
<published>2018-10-12T19:34:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cppunit.git/commit/?id=48145587c4c2dc4f1e07d83073e136336c81ce79'/>
<id>48145587c4c2dc4f1e07d83073e136336c81ce79</id>
<content type='text'>
This is similar to googletest's TEST_F() macro, allows to avoid spelling
out the test name in a suite only once, not 3 times.

Change-Id: I90804d271d046d8158678617d8db75ed6ca7c420
Reviewed-on: https://gerrit.libreoffice.org/61732
Reviewed-by: Markus Mohrhard &lt;markus.mohrhard@googlemail.com&gt;
Tested-by: Markus Mohrhard &lt;markus.mohrhard@googlemail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is similar to googletest's TEST_F() macro, allows to avoid spelling
out the test name in a suite only once, not 3 times.

Change-Id: I90804d271d046d8158678617d8db75ed6ca7c420
Reviewed-on: https://gerrit.libreoffice.org/61732
Reviewed-by: Markus Mohrhard &lt;markus.mohrhard@googlemail.com&gt;
Tested-by: Markus Mohrhard &lt;markus.mohrhard@googlemail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid GCC 9 -Wdeprecated-copy</title>
<updated>2018-09-26T14:49:15+00:00</updated>
<author>
<name>Stephan Bergmann</name>
<email>sbergman@redhat.com</email>
</author>
<published>2018-08-07T14:24:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cppunit.git/commit/?id=4f5cd3b486afb9c7be1903252b4ae3787137a454'/>
<id>4f5cd3b486afb9c7be1903252b4ae3787137a454</id>
<content type='text'>
...when an implicitly-defined copy function is used that may in a future C++
standard be defined as deleted because of the user-declared destructor.  Just
declare all the four copy/move functions as defaulted for a consistent
interface.

(Originally addressed with LibreOffice commit
&lt;https://gerrit.libreoffice.org/58042&gt; "external/cppunit: silence
-Werror=deprecated-copy (GCC trunk towards GCC 9)".)

Change-Id: Ie38ac3a613e6fbc2e4045cb5b14c3f6d167c79c5
Reviewed-on: https://gerrit.libreoffice.org/58690
Reviewed-by: Stephan Bergmann &lt;sbergman@redhat.com&gt;
Tested-by: Stephan Bergmann &lt;sbergman@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
...when an implicitly-defined copy function is used that may in a future C++
standard be defined as deleted because of the user-declared destructor.  Just
declare all the four copy/move functions as defaulted for a consistent
interface.

(Originally addressed with LibreOffice commit
&lt;https://gerrit.libreoffice.org/58042&gt; "external/cppunit: silence
-Werror=deprecated-copy (GCC trunk towards GCC 9)".)

Change-Id: Ie38ac3a613e6fbc2e4045cb5b14c3f6d167c79c5
Reviewed-on: https://gerrit.libreoffice.org/58690
Reviewed-by: Stephan Bergmann &lt;sbergman@redhat.com&gt;
Tested-by: Stephan Bergmann &lt;sbergman@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>implement parameterized tests</title>
<updated>2016-12-16T13:05:07+00:00</updated>
<author>
<name>Markus Mohrhard</name>
<email>markus.mohrhard@googlemail.com</email>
</author>
<published>2016-12-16T12:53:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cppunit.git/commit/?id=4e529c6a6569d1f352e02af16e53aba7ae7bdc1a'/>
<id>4e529c6a6569d1f352e02af16e53aba7ae7bdc1a</id>
<content type='text'>
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 &lt; 5);
    }
};

which will execute test 4 times with the values 1 to 4.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt; 5);
    }
};

which will execute test 4 times with the values 1 to 4.
</pre>
</div>
</content>
</entry>
<entry>
<title>tdf#104498 CPPUNIT_USE_TYPEINFO_NAME is a flag</title>
<updated>2016-12-16T09:10:33+00:00</updated>
<author>
<name>David Tardon</name>
<email>dtardon@redhat.com</email>
</author>
<published>2016-12-16T09:10:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cppunit.git/commit/?id=3bf22cb6d0645bf329fec9c850477b2fc9976f6c'/>
<id>3bf22cb6d0645bf329fec9c850477b2fc9976f6c</id>
<content type='text'>
... so check just for existence.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... so check just for existence.
</pre>
</div>
</content>
</entry>
<entry>
<title>remove support for old broken C++ compilers</title>
<updated>2016-12-11T08:09:46+00:00</updated>
<author>
<name>Markus Mohrhard</name>
<email>markus.mohrhard@googlemail.com</email>
</author>
<published>2016-12-11T07:44:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cppunit.git/commit/?id=2b9f4b072bfb4129ee8eaaa86b3f068bdd2d581d'/>
<id>2b9f4b072bfb4129ee8eaaa86b3f068bdd2d581d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>replace with std::unique_ptr</title>
<updated>2016-10-15T15:31:58+00:00</updated>
<author>
<name>Markus Mohrhard</name>
<email>markus.mohrhard@googlemail.com</email>
</author>
<published>2016-10-15T15:09:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cppunit.git/commit/?id=c314941600c5bd601831e6204b04b06a223064e7'/>
<id>c314941600c5bd601831e6204b04b06a223064e7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>HelperMacros: fix deprecated NULL macro usage</title>
<updated>2016-10-15T15:31:48+00:00</updated>
<author>
<name>GARCIN David</name>
<email>david.garcin@openwide.fr</email>
</author>
<published>2016-10-15T15:01:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cppunit.git/commit/?id=29ae31614fb70e192f63fdab1c65105493319edc'/>
<id>29ae31614fb70e192f63fdab1c65105493319edc</id>
<content type='text'>
Using gcc (currently using gcc 5.2) flag -Wzero-as-null-pointer-constant
triggers warnings:

[...]include/cppunit/extensions/HelperMacros.h:171:31: error: zero as null
pointer constant [-Werror=zero-as-null-pointer-constant]
  CppUnitExDeleter() : suite (0) {}           \
                              ^

[...]include/cppunit/extensions/HelperMacros.h:174:45: error: zero as null
pointer constant [-Werror=zero-as-null-pointer-constant]
   CPPUNIT_NS::TestSuite *tmp = suite; suite = NULL; return tmp;  \
                                                ^

Using nullptr is the c++11 way to initialize pointers with null value [1].

[1] http://en.cppreference.com/w/cpp/language/nullptr
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using gcc (currently using gcc 5.2) flag -Wzero-as-null-pointer-constant
triggers warnings:

[...]include/cppunit/extensions/HelperMacros.h:171:31: error: zero as null
pointer constant [-Werror=zero-as-null-pointer-constant]
  CppUnitExDeleter() : suite (0) {}           \
                              ^

[...]include/cppunit/extensions/HelperMacros.h:174:45: error: zero as null
pointer constant [-Werror=zero-as-null-pointer-constant]
   CPPUNIT_NS::TestSuite *tmp = suite; suite = NULL; return tmp;  \
                                                ^

Using nullptr is the c++11 way to initialize pointers with null value [1].

[1] http://en.cppreference.com/w/cpp/language/nullptr
</pre>
</div>
</content>
</entry>
<entry>
<title>we always require RTTI now</title>
<updated>2016-10-15T15:28:02+00:00</updated>
<author>
<name>Markus Mohrhard</name>
<email>markus.mohrhard@googlemail.com</email>
</author>
<published>2016-10-15T15:28:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cppunit.git/commit/?id=42bd37a4b8d8feab2d30761648b51eaf20623abb'/>
<id>42bd37a4b8d8feab2d30761648b51eaf20623abb</id>
<content type='text'>
RTTI is supported by any decent compiler and with the mandatory c++11 support
we are no longer supporting older compilers anyway.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
RTTI is supported by any decent compiler and with the mandatory c++11 support
we are no longer supporting older compilers anyway.
</pre>
</div>
</content>
</entry>
<entry>
<title>calm gcc paranoia about uninitialized state</title>
<updated>2012-06-27T12:15:22+00:00</updated>
<author>
<name>Michael Meeks</name>
<email>michael.meeks@suse.com</email>
</author>
<published>2012-06-27T12:15:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cppunit.git/commit/?id=4a433cde9871b77858b059c318488f7a1a6f3e50'/>
<id>4a433cde9871b77858b059c318488f7a1a6f3e50</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>avoid the need to work around auto_ptr warnings by dropping that</title>
<updated>2012-06-27T12:00:15+00:00</updated>
<author>
<name>Michael Meeks</name>
<email>michael.meeks@suse.com</email>
</author>
<published>2012-06-27T12:00:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cppunit.git/commit/?id=943e73cc0401df0fac2636e3676218c8e1219a05'/>
<id>943e73cc0401df0fac2636e3676218c8e1219a05</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
