From: Razvan Becheriu Date: Fri, 6 Mar 2020 21:17:04 +0000 (+0200) Subject: [#1016] fixed compilation X-Git-Tag: Kea-1.7.6~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acb0e5d146ab4d671bc5e9264ebc4708f2e07471;p=thirdparty%2Fkea.git [#1016] fixed compilation --- diff --git a/src/lib/util/tests/multi_threading_mgr_unittest.cc b/src/lib/util/tests/multi_threading_mgr_unittest.cc index 341d21f67c..4e2846e9e7 100644 --- a/src/lib/util/tests/multi_threading_mgr_unittest.cc +++ b/src/lib/util/tests/multi_threading_mgr_unittest.cc @@ -103,7 +103,7 @@ TEST(MultiThreadingMgrTest, applyConfig) { } /// @brief Verifies that the critical section flag works. -TEST(MultiThreadingMgrTest, criticalSection) { +TEST(MultiThreadingMgrTest, criticalSectionFlag) { // get the thread pool auto& thread_pool = MultiThreadingMgr::instance().getPktThreadPool(); // MT should be disabled @@ -148,9 +148,10 @@ TEST(MultiThreadingMgrTest, criticalSection) { EXPECT_EQ(thread_pool.size(), 0); } +/// @brief Verifies that the critical section works. TEST(MultiThreadingMgrTest, criticalSection) { // get the thread pool instance - auto & thread_pool = MultiThreadingMgr::instance().getPktThreadPool(); + auto& thread_pool = MultiThreadingMgr::instance().getPktThreadPool(); // thread pool should be stopped EXPECT_EQ(thread_pool.size(), 0); // apply multi-threading configuration with 16 threads