orocos-toolchain / rtt

Orocos Real-Time Toolkit
http://www.orocos.org
Other
72 stars 79 forks source link

tests: fixed timeout counter expectations in FileDescriptorActivity tests #186

Closed meyerj closed 7 years ago

meyerj commented 7 years ago

BOOST_CHECK_CLOSE_FRACTION(left, right, tolerance) expects a tolerance given as fraction of absolute values (http://www.boost.org/doc/libs/1_62_0/libs/test/doc/html/boost_test/utf_reference/testing_tool_ref/assertion_boost_level_close_fraction.html). With the introduction of additional sleep delay of half a timeout cycle the timeout counter should be predictable enough for exact checks. However the checks could fail if the CPU is too busy to execute the FileDescriptorActivity.