gitignore expansion, unittest renames

master
Denes Matetelki 14 years ago
parent b9f55724d8
commit 1fe8027efe

3
.gitignore vendored

@ -8,3 +8,6 @@
*/lcov.info */lcov.info
*/core */core
*.kdev_include_paths *.kdev_include_paths
test/generated_main.cpp
test/test

@ -6,6 +6,6 @@ if(CXXTEST_FOUND)
set(CXXTEST_USE_PERL TRUE) set(CXXTEST_USE_PERL TRUE)
include_directories(${CXXTEST_INCLUDE_DIR} ../include) include_directories(${CXXTEST_INCLUDE_DIR} ../include)
enable_testing() enable_testing()
CXXTEST_ADD_TEST(unittest_multiple generated_main.cpp test_threadpool.hpp ) CXXTEST_ADD_TEST(test generated_main.cpp test_threadpool.hpp )
target_link_libraries(unittest_multiple CppUtils gcov) target_link_libraries(test CppUtils gcov)
endif() endif()

@ -15,9 +15,9 @@ class MyTestSuite : public CxxTest::TestSuite
public: public:
void testACica() void testBasic()
{ {
TRACE("Main start"); TRACE("testBasic begin");
ThreadPool* tp = new ThreadPool(5); ThreadPool* tp = new ThreadPool(5);
tp->startWorkerThreads(); tp->startWorkerThreads();
@ -31,6 +31,6 @@ public:
tp->join(); tp->join();
delete tp; delete tp;
TRACE("Main end"); TRACE("testBasic end");
} }
}; };

Loading…
Cancel
Save