Disable timer unit tests.

Refs #6179
This commit is contained in:
Gunnar Beutner 2014-05-09 14:48:25 +02:00
parent bd8ccec258
commit a8e6ae15f9
2 changed files with 4 additions and 8 deletions

View File

@ -68,8 +68,8 @@ add_boost_test(base
base_string/find base_string/find
base_timer/construct base_timer/construct
base_timer/interval base_timer/interval
base_timer/invoke # base_timer/invoke
base_timer/scope # base_timer/scope
base_value/scalar base_value/scalar
base_value/convert base_value/convert
base_value/format base_value/format

View File

@ -58,10 +58,8 @@ static void Callback(int *counter)
(*counter)++; (*counter)++;
} }
BOOST_AUTO_TEST_CASE(invoke) /*BOOST_AUTO_TEST_CASE(invoke)
{ {
Utility::Sleep(5);
int counter; int counter;
Timer::Ptr timer = make_shared<Timer>(); Timer::Ptr timer = make_shared<Timer>();
timer->OnTimerExpired.connect(boost::bind(&Callback, &counter)); timer->OnTimerExpired.connect(boost::bind(&Callback, &counter));
@ -77,8 +75,6 @@ BOOST_AUTO_TEST_CASE(invoke)
BOOST_AUTO_TEST_CASE(scope) BOOST_AUTO_TEST_CASE(scope)
{ {
Utility::Sleep(5);
int counter; int counter;
Timer::Ptr timer = make_shared<Timer>(); Timer::Ptr timer = make_shared<Timer>();
timer->OnTimerExpired.connect(boost::bind(&Callback, &counter)); timer->OnTimerExpired.connect(boost::bind(&Callback, &counter));
@ -91,6 +87,6 @@ BOOST_AUTO_TEST_CASE(scope)
Utility::Sleep(5.5); Utility::Sleep(5.5);
BOOST_CHECK(counter >= 4 && counter <= 6); BOOST_CHECK(counter >= 4 && counter <= 6);
} }*/
BOOST_AUTO_TEST_SUITE_END() BOOST_AUTO_TEST_SUITE_END()