From: Marcin Siodelski Date: Wed, 2 Sep 2015 11:10:52 +0000 (+0200) Subject: [3970] Disabled one test in TimerMgr. X-Git-Tag: fd4o6_base~5^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e81623917a3e2d7e24e0d6d310001b3cd9c519bf;p=thirdparty%2Fkea.git [3970] Disabled one test in TimerMgr. --- diff --git a/src/lib/dhcpsrv/tests/timer_mgr_unittest.cc b/src/lib/dhcpsrv/tests/timer_mgr_unittest.cc index fadd2baffb..0664ad96a6 100644 --- a/src/lib/dhcpsrv/tests/timer_mgr_unittest.cc +++ b/src/lib/dhcpsrv/tests/timer_mgr_unittest.cc @@ -57,7 +57,7 @@ public: /// @param mode Interval timer mode, which defaults to /// @c IntervalTimer::ONE_SHOT. void registerTimer(const std::string& timer_name, const long timer_interval, - const IntervalTimer::Mode& timer_mode = IntervalTimer::REPEATING); + const IntervalTimer::Mode& timer_mode = IntervalTimer::ONE_SHOT); /// @brief Wait for one or many ready handlers. /// @@ -152,9 +152,9 @@ TimerMgrTest::timerCallback(const std::string& timer_name) { // Accumulate the number of calls to the timer handler. ++calls_count_[timer_name]; -/* // The timer installed is the ONE_SHOT timer, so we have + // The timer installed is the ONE_SHOT timer, so we have // to reschedule the timer. - TimerMgr::instance().setup(timer_name); */ + TimerMgr::instance().setup(timer_name); } boost::function @@ -245,7 +245,12 @@ TEST_F(TimerMgrTest, deregisterTimer) { } // This test verifies taht it is possible to deregister all timers. -TEST_F(TimerMgrTest, deregisterTimers) { +/// @todo This test is disabled because it may occassionally hang +/// due to bug in the ASIO implementation shipped with Kea. +/// Replacing it with the ASIO implementation from BOOST does +/// solve the problem. See ticket #4009. Until this ticket is +/// implemented, the test should remain disabled. +TEST_F(TimerMgrTest, DISABLED_deregisterTimers) { TimerMgr& timer_mgr = TimerMgr::instance(); // Register 10 timers.