<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/unitpp/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/unitpp/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/unitpp/bugs/</id><updated>2010-09-26T22:01:58Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>Access violation when adding same suite twice</title><link href="https://sourceforge.net/p/unitpp/bugs/7/" rel="alternate"/><published>2010-09-26T22:01:58Z</published><updated>2010-09-26T22:01:58Z</updated><author><name>Altforweilerer</name><uri>https://sourceforge.net/u/altforweilerer/</uri></author><id>https://sourceforge.net026733114f4d2107f89ec957ed5411055974c313</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If you accidently call suite::main().add("SomeName", this); twice for the same test suite, an access violation will occur in the destructor when the program exits because it tries to delete the suite twice. Since this is a hard to find bug, there should be a check when adding a test suite whether it has already been added, and a proper error message should be shown.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Example Code on Home page</title><link href="https://sourceforge.net/p/unitpp/bugs/6/" rel="alternate"/><published>2010-07-30T14:47:24Z</published><updated>2010-07-30T14:47:24Z</updated><author><name>Matthew Walker</name><uri>https://sourceforge.net/u/mgwalker/</uri></author><id>https://sourceforge.netfb507f69e3021eb535a3da36adbd9940d1bda415</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I was trying to compile the example code on the web page &lt;a href="http://unitpp.sourceforge.net/"&gt;http://unitpp.sourceforge.net/&lt;/a&gt; but I wasn't able to compile it directly with GCC version 4.5.0.  I modified the example a little and this did compile and work:&lt;/p&gt;
&lt;p&gt;#include &amp;lt;unit++.h&amp;gt;&lt;br /&gt;
using namespace unitpp;&lt;/p&gt;
&lt;p&gt;namespace {&lt;br /&gt;
class Test : public suite {&lt;br /&gt;
void test1()&lt;br /&gt;
{&lt;br /&gt;
assert_true("Compiler sanity", true);&lt;br /&gt;
}&lt;br /&gt;
public:&lt;br /&gt;
Test()&lt;br /&gt;
: suite("The Demo Suite")&lt;br /&gt;
{&lt;br /&gt;
// make the test1 method a test in this suite                           &lt;br /&gt;
add("test1", testcase(this, "Demo test", &amp;amp;Test::test1));&lt;br /&gt;
// add this suite to the main suite                                     &lt;br /&gt;
suite::main().add("demo", this);&lt;br /&gt;
}&lt;br /&gt;
};&lt;br /&gt;
Test* theTest = new Test();&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Finally, I ran the command:&lt;br /&gt;
g++ -o test test.cpp -lunit++&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>No implicit #include &amp;lt;vector&amp;gt;</title><link href="https://sourceforge.net/p/unitpp/bugs/5/" rel="alternate"/><published>2003-12-13T11:33:54Z</published><updated>2003-12-13T11:33:54Z</updated><author><name>Marc-Andre Michel</name><uri>https://sourceforge.net/u/marcandremichel/</uri></author><id>https://sourceforge.net9aa86cc5dad6ffc8feccd672c583c4fd51877240</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I've compiled the 1.2.1 sources with g++ 3.3 on Mac OS X &lt;br /&gt;
and got the following error:&lt;/p&gt;
&lt;p&gt;g++ -c -g -O2  -I/Developer/qt/include -DGUI=1 &lt;br /&gt;
-DHAVE_SSTREAM=1  -o gui.o gui.cc&lt;br /&gt;
In file included from gui.cc:2:&lt;br /&gt;
gui.h:151: warning: ISO C++ forbids declaration of `vector' &lt;br /&gt;
with no type&lt;br /&gt;
gui.h:151: error: template-id `vector&amp;amp;lt;unitpp::node*&amp;amp;gt;' used &lt;br /&gt;
as a declarator&lt;br /&gt;
gui.h:151: error: parse error before `;' token&lt;br /&gt;
gui.h:152: error: 'cctyp' is used as a type, but is not defined &lt;br /&gt;
as a type.&lt;br /&gt;
gui.h: In member function `void unitpp::suite_node::&lt;br /&gt;
add_child(unitpp::node*)':&lt;br /&gt;
gui.h:161: error: `cc' undeclared (first use this function)&lt;br /&gt;
gui.h:161: error: (Each undeclared identifier is reported only &lt;br /&gt;
once for each &lt;br /&gt;
function it appears in.)&lt;br /&gt;
gui.cc: In member function `virtual void unitpp::suite_node::&lt;br /&gt;
run()':&lt;br /&gt;
gui.cc:251: error: `cctyp' undeclared (first use this function)&lt;br /&gt;
gui.cc:251: error: parse error before `::' token&lt;br /&gt;
gui.cc:251: error: `p' undeclared (first use this function)&lt;br /&gt;
make: *** [gui.o] Error 1&lt;/p&gt;
&lt;p&gt;It seems that g++ doesn't implicitely include the headers for &lt;br /&gt;
stdlib.&lt;/p&gt;
&lt;p&gt;So in order to compile I've modified gui.h as follow:&lt;/p&gt;
&lt;p&gt;17d16&lt;br /&gt;
&amp;amp;lt; #include &amp;amp;lt;vector&amp;amp;gt;&lt;br /&gt;
152c151&lt;br /&gt;
&amp;amp;lt;       typedef std::vector&amp;amp;lt;node*&amp;amp;gt; cctyp;&lt;br /&gt;
---&lt;br /&gt;
&amp;amp;gt;       typedef vector&amp;amp;lt;node*&amp;amp;gt; cctyp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Marc-Andre&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Compiler errors on VC++ 6.0</title><link href="https://sourceforge.net/p/unitpp/bugs/4/" rel="alternate"/><published>2003-01-03T17:33:12Z</published><updated>2003-01-03T17:33:12Z</updated><author><name>Archimedes Trajano</name><uri>https://sourceforge.net/u/trajano/</uri></author><id>https://sourceforge.net2ad913adae2ee419d30fe7f92163026e6e1ded97</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Compiling...&lt;br /&gt;
unit++.cpp&lt;br /&gt;
c:\documents and &lt;br /&gt;
settings\trajano\desktop\unit++\unit++.h(117) : error &lt;br /&gt;
C2039: 'size_t' : is not a member of 'std'&lt;br /&gt;
c:\documents and &lt;br /&gt;
settings\trajano\desktop\unit++\unit++.cpp(86) : error &lt;br /&gt;
C2784: 'class std::mem_fun_ref_t&amp;amp;lt;_R,_Ty&amp;amp;gt; __cdecl &lt;br /&gt;
std::mem_fun_ref(_R (__thiscall _Ty::*)(void))' : could not &lt;br /&gt;
deduce template argument for '&amp;amp;lt;Unknown&amp;amp;gt;' from 'void &lt;br /&gt;
(__thiscall unit&lt;br /&gt;
pp::testcase::*)(class unitpp::visitor *) const'&lt;br /&gt;
Error executing cl.exe.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>web page errors</title><link href="https://sourceforge.net/p/unitpp/bugs/3/" rel="alternate"/><published>2002-05-02T20:42:05Z</published><updated>2002-05-02T20:42:05Z</updated><author><name>Archimedes Trajano</name><uri>https://sourceforge.net/u/trajano/</uri></author><id>https://sourceforge.netabfae1b2b16349ef1c3a4f13bda2b4614fe04ddd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The text after &amp;amp;quot;#include&amp;amp;quot; is not visible, the include &lt;br /&gt;
delimiters should be changed to *gt; and *lt; &lt;br /&gt;
respectively in order to render it (replace * with the &lt;br /&gt;
ampersand)&lt;/p&gt;
&lt;p&gt;Also it is missing &amp;amp;quot;using namespace pp;&amp;amp;quot; it was &lt;br /&gt;
causing compilation errors without it.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>xlC warnings and AIX failure</title><link href="https://sourceforge.net/p/unitpp/bugs/2/" rel="alternate"/><published>2002-05-02T19:40:52Z</published><updated>2002-05-02T19:40:52Z</updated><author><name>Archimedes Trajano</name><uri>https://sourceforge.net/u/trajano/</uri></author><id>https://sourceforge.netecfbf5e901bcf66ff230b554ad6ddd0b370d6c74</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The following warning is generated using xlC on AIX.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;xlC -c -g   -DHAVE_SSTREAM=1  -o tester.o &lt;br /&gt;
tester.cc&lt;br /&gt;
&amp;amp;quot;tester.cc&amp;amp;quot;, line 68.29: 1540-2412 (W) A typeid is &lt;br /&gt;
present, but the correct RTTI option is not specified.&lt;/p&gt;
&lt;p&gt;I think it is because of this that I get the following &lt;br /&gt;
error&lt;/p&gt;
&lt;p&gt;$ ./unit++&lt;br /&gt;
FAIL: Get by id&lt;br /&gt;
s2 was suite [assertion failed]&lt;br /&gt;
Tests [Ok-Fail-Error]: [13-1-0]&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Return code swapped</title><link href="https://sourceforge.net/p/unitpp/bugs/1/" rel="alternate"/><published>2002-04-24T05:24:33Z</published><updated>2002-04-24T05:24:33Z</updated><author><name>Claus Dræby</name><uri>https://sourceforge.net/u/azhrarn/</uri></author><id>https://sourceforge.netf8a3c7af4367f9a6ce1db5339454a800e2edaebe</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The exit code from the main method is swapped, so it returns error &lt;br /&gt;
if all the tests pass, and OK if at least one fails&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>