From: g0dil Date: Mon, 28 Sep 2009 11:21:15 +0000 (+0000) Subject: PPI: Make timing-critical RateFilter tests optional X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=b3f18227e13770f6943ab867b9b1eef9dbbea773;p=senf.git PPI: Make timing-critical RateFilter tests optional git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1453 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/senf/PPI/RateFilter.test.cc b/senf/PPI/RateFilter.test.cc index cdaddc8..6557c07 100644 --- a/senf/PPI/RateFilter.test.cc +++ b/senf/PPI/RateFilter.test.cc @@ -82,6 +82,11 @@ namespace { BOOST_AUTO_UNIT_TEST(rateFilter_changeInterval) { + char const * enabled (getenv("SENF_TIMING_CRITICAL_TESTS")); + if (! enabled) { + BOOST_WARN_MESSAGE(false, "Set SENF_TIMING_CRITICAL_TESTS to not skip timing critical tests"); + } + module::RateFilter rateFilter ( senf::ClockService::milliseconds(100) ); debug::PassiveSource source; debug::PassiveSink sink; @@ -106,7 +111,8 @@ BOOST_AUTO_UNIT_TEST(rateFilter_changeInterval) senf::ppi::run(); BOOST_CHECK_EQUAL( rateFilter.interval(), senf::ClockService::milliseconds(200) ); - BOOST_CHECK_EQUAL( sink.size(), 4); + if (enabled) + BOOST_CHECK_EQUAL( sink.size(), 4); } ///////////////////////////////cc.e////////////////////////////////////////