Hi all,
in the CppUnit Cookbook, there seems to be an error in the last example:
<code>
{
//...
bool wasSuccessful = runner.run( "", false );
return wasSuccessful;
}
</code>
In the documentation you mention, "...the application must returns a
value different than 0 to indicate that there was an error". As the name
"wasSuccessful" implies being true, iff the tests ran correctly, main()
will return a value different to 0 on _success_, which contradicts the
documentation. So either the documentation is wrong, or (more probable)
main has to return !wasSuccessful.
Cu
Norbert
|