diff --git a/.gitignore b/.gitignore index 19b358c..52bdd5c 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,6 @@ */lcov.info */core *.kdev_include_paths +test/generated_main.cpp +test/test + diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b35b630..868e5a8 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -6,6 +6,6 @@ if(CXXTEST_FOUND) set(CXXTEST_USE_PERL TRUE) include_directories(${CXXTEST_INCLUDE_DIR} ../include) enable_testing() -CXXTEST_ADD_TEST(unittest_multiple generated_main.cpp test_threadpool.hpp ) -target_link_libraries(unittest_multiple CppUtils gcov) +CXXTEST_ADD_TEST(test generated_main.cpp test_threadpool.hpp ) +target_link_libraries(test CppUtils gcov) endif() diff --git a/test/test_threadpool.hpp b/test/test_threadpool.hpp index 2d13354..2689cc8 100644 --- a/test/test_threadpool.hpp +++ b/test/test_threadpool.hpp @@ -15,9 +15,9 @@ class MyTestSuite : public CxxTest::TestSuite public: - void testACica() + void testBasic() { - TRACE("Main start"); + TRACE("testBasic begin"); ThreadPool* tp = new ThreadPool(5); tp->startWorkerThreads(); @@ -31,6 +31,6 @@ public: tp->join(); delete tp; - TRACE("Main end"); + TRACE("testBasic end"); } };