Author: czeidler Date: 2011-06-18 03:33:05 +0200 (Sat, 18 Jun 2011) New Revision: 42227 Changeset: https://dev.haiku-os.org/changeset/42227 Modified: haiku/trunk/src/tools/cppunit/TestShell.cpp Log: Some style cleanup. Modified: haiku/trunk/src/tools/cppunit/TestShell.cpp =================================================================== --- haiku/trunk/src/tools/cppunit/TestShell.cpp 2011-06-18 01:29:27 UTC (rev 42226) +++ haiku/trunk/src/tools/cppunit/TestShell.cpp 2011-06-18 01:33:05 UTC (rev 42227) @@ -112,22 +112,20 @@ status_t err; err = addonEntry.GetPath(&addonPath); if (!err) { -// cout << "Checking " << addonPath.Path() << "..." << flush; +// cout << "Checking " << addonPath.Path() << "..." << endl; addonImage = load_add_on(addonPath.Path()); - err = (addonImage > 0 ? B_OK : B_ERROR); + err = (addonImage >= 0 ? B_OK : B_ERROR); } - if (!err) { + if (err == B_OK) { // cout << "..." << endl; - err = get_image_symbol(addonImage, - "getTestSuite", - B_SYMBOL_TYPE_TEXT, - reinterpret_cast<void **>(&func)); + err = get_image_symbol(addonImage, "getTestSuite", + B_SYMBOL_TYPE_TEXT, reinterpret_cast<void **>(&func)); } else { // cout << " !!! err == " << err << endl; } - if (!err) + if (err == B_OK) err = AddSuite(func()); - if (!err) + if (err == B_OK) count++; } return count;