[Cppunit-devel] bug
Brought to you by:
blep
From: Armstrong, A. (AGRE) <Aar...@sm...> - 2005-03-04 20:32:29
|
On http://cppunit.sourceforge.net/doc/lastest/cppunit_cookbook.html =0D In the code example =0D #include <cppunit/extensions/TestFactoryRegistry.h <http://cppunit.sourceforge.net/doc/lastest/_test_factory_registry_8h.ht ml> > #include <cppunit/ui/text/TestRunner.h <http://cppunit.sourceforge.net/doc/lastest/cppunit_2ui_2text_2_test_run ner_8h.html> > =0D int main( int argc, char **argv) { CppUnit::TextUi::TestRunner runner; CppUnit::TestFactoryRegistry ®istry =3D CppUnit::TestFactoryRegistry::getRegistry(); runner.addTest( registry.makeTest() ); bool wasSuccessful =3D runner.run( "", false ); return wasSuccessful; } =0D =0D The next to last line should read =0D return !wasSuccessful; =0D =0D Aaron Armstrong ****************************************** The information contained in, or attached to, this e-mail, may contain= confidential information and is intended solely for the use of the= individual or entity to whom they are addressed and may be subject to= legal privilege. If you have received this e-mail in error you should= notify the sender immediately by reply e-mail, delete the message from= your system and notify your system manager. Please do not copy it for any= purpose, or disclose its contents to any other person. The views or= opinions presented in this e-mail are solely those of the author and do= not necessarily represent those of the company. The recipient should= check this e-mail and any attachments for the presence of viruses. The= company accepts no liability for any damage caused, directly or= indirectly, by any virus transmitted in this email. ****************************************** |