diff --git a/src/lib/handle_mgr/test/handlemgrtest.cpp b/src/lib/handle_mgr/test/handlemgrtest.cpp index 5f8581a6..98e75437 100644 --- a/src/lib/handle_mgr/test/handlemgrtest.cpp +++ b/src/lib/handle_mgr/test/handlemgrtest.cpp @@ -62,13 +62,13 @@ class MyProgressListener : public CppUnit::TextTestProgressListener } void startTest(CppUnit::Test *test) { - (test); + (void)test; start = clock(); } void endTestRun(CppUnit::Test *test, CppUnit::TestResult *eventManager) { - (eventManager); (test); + (void)eventManager; (void)test; end = clock(); duration= double(end - start)/ CLOCKS_PER_SEC; CppUnit::stdCOut() << "duration " << TimeFormat(duration); @@ -80,7 +80,7 @@ class MyProgressListener : public CppUnit::TextTestProgressListener } void endTest(CPPUNIT_NS::Test *test) { - (test); + (void)test; } double durationTest() const { diff --git a/src/lib/session_mgr/test/sessionmgrtest.cpp b/src/lib/session_mgr/test/sessionmgrtest.cpp index fe1b817a..0ea55fca 100644 --- a/src/lib/session_mgr/test/sessionmgrtest.cpp +++ b/src/lib/session_mgr/test/sessionmgrtest.cpp @@ -79,32 +79,6 @@ std::auto_ptr BotanCryptoFactory::instance(NULL); #endif -class MyProgressListener : public CppUnit::TextTestProgressListener -{ - void startTest(CppUnit::Test *test) { - bool t = true; - } - - void endTestRun(CppUnit::Test *test, - CppUnit::TestResult *eventManager) { - bool t = true; - } -private: - std::string m_name; -}; - -class MyListener : public CPPUNIT_NS::TestListener { - virtual void startTest( CPPUNIT_NS::Test*const pTest ) { - std::cout << std::endl << pTest->getName() << ' ' << pTest->countTestCases() << std::endl << std::endl; - } - virtual void addFailure( const CPPUNIT_NS::TestFailure & failure ) { - const CPPUNIT_NS::SourceLine solurceLine( failure.sourceLine() ); - CPPUNIT_NS::Message message( failure.thrownException()->message() ); - std::cout << solurceLine.fileName() << ' ' << solurceLine.lineNumber() << ' ' << message.shortDescription() << std::endl; - std::cout << message.details() << std::endl << std::endl; - } -}; - int main(int /*argc*/, char** /*argv*/) { CppUnit::TestResult controller; @@ -116,9 +90,6 @@ int main(int /*argc*/, char** /*argv*/) CppUnit::BriefTestProgressListener progressListener; controller.addListener(&progressListener); - MyProgressListener progress; - controller.addListener(&progress); - runner.addTest(registry.makeTest()); runner.run(controller); diff --git a/src/lib/slot_mgr/test/slotmgrtest.cpp b/src/lib/slot_mgr/test/slotmgrtest.cpp index b22ec7c0..a70527fe 100644 --- a/src/lib/slot_mgr/test/slotmgrtest.cpp +++ b/src/lib/slot_mgr/test/slotmgrtest.cpp @@ -73,20 +73,6 @@ std::auto_ptr BotanCryptoFactory::instance(NULL); #endif -class MyProgressListener : public CppUnit::TextTestProgressListener -{ - void startTest(CppUnit::Test *test) { - bool t = true; - } - - void endTestRun(CppUnit::Test *test, - CppUnit::TestResult *eventManager) { - bool t = true; - } -private: - std::string m_name; -}; - int main(int /*argc*/, char** /*argv*/) { CppUnit::TestResult controller; @@ -98,9 +84,6 @@ int main(int /*argc*/, char** /*argv*/) CppUnit::BriefTestProgressListener progressListener; controller.addListener(&progressListener); - MyProgressListener progress; - controller.addListener(&progress); - runner.addTest(registry.makeTest()); runner.run(controller);