From 7d5fd9326c5a7879e875b87653f8057e694faf8d Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Sat, 18 Jun 2011 01:33:05 +0000 Subject: [PATCH] Some style cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42227 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/cppunit/TestShell.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/tools/cppunit/TestShell.cpp b/src/tools/cppunit/TestShell.cpp index f0a6a59190..3cd370f9b9 100644 --- a/src/tools/cppunit/TestShell.cpp +++ b/src/tools/cppunit/TestShell.cpp @@ -112,22 +112,20 @@ BTestShell::LoadSuitesFrom(BDirectory *libDir) { 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(&func)); + err = get_image_symbol(addonImage, "getTestSuite", + B_SYMBOL_TYPE_TEXT, reinterpret_cast(&func)); } else { // cout << " !!! err == " << err << endl; } - if (!err) + if (err == B_OK) err = AddSuite(func()); - if (!err) + if (err == B_OK) count++; } return count;