Skip to content
Commit ffb9e097 authored by Andy Ross's avatar Andy Ross Committed by Anas Nashif
Browse files

tests/posix/common: Adjust miscalibrated timing test



This test seems a little confused.  It does a POSIX usleep() for 90ms,
then checks the time taken, and verifies that it was no less
than... 91ms!

On existing platforms, tick alignment makes sure that we always take a
little longer, so this passes. But on high tick rate configurations we
get it exactly right.  And fail.

Adjust the calibration to allow (exactly) 90ms sleeps.  Also fixed a
comment that described the wrong units.

Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
parent 03164a78
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment