<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cppunit.git/include/cppunit/extensions, branch cppunit-1.14.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>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>
<entry>
<title>TestDecorator assumes ownership and is not allowed to create copies</title>
<updated>2012-06-16T10:43:34+00:00</updated>
<author>
<name>Markus Mohrhard</name>
<email>markus.mohrhard@googlemail.com</email>
</author>
<published>2012-06-16T10:43:34+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cppunit.git/commit/?id=6ad5f9b35c32d696424f241530d3c0595c608c8a'/>
<id>6ad5f9b35c32d696424f241530d3c0595c608c8a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>correct documentation, sf#2185407</title>
<updated>2012-06-13T07:56:37+00:00</updated>
<author>
<name>Markus Mohrhard</name>
<email>markus.mohrhard@googlemail.com</email>
</author>
<published>2012-06-13T07:56:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cppunit.git/commit/?id=42e99e0881b9fc67f31c80e60fa7c04ad3e6d2a5'/>
<id>42e99e0881b9fc67f31c80e60fa7c04ad3e6d2a5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
