orocos-toolchain / rtt

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

tests: removed special case for high-priority real-time threads in testAffinity #260

Closed meyerj closed 6 years ago

meyerj commented 6 years ago

The condition to execute that part was always evaluating to false because it compared a scheduler type with a priority. The actual test case is invalid because even for a real-time thread with the highest priority there is no guarantee that it executes at least once between the start and stop call.

@snrkiwi You added this test case in 2011. Is this something you would expect from RTT? Maybe the test would have worked back then, but a later update changed the behavior of start() in this case and this was not detected due to the wrong comparison?