Skip to content
Commit 7c8eeb15 authored by Christopher Friedt's avatar Christopher Friedt Committed by Fabio Baltieri
Browse files

tests: posix: clock: do not use usleep in a broken way



Using `usleep()` for >= 10000000 microseconds results
in an error, so this test was kind of defective, having
explicitly called `usleep()` for seconds.

Also, check the return values of `clock_gettime()`.

Signed-off-by: default avatarChris Friedt <cfriedt@meta.com>
(cherry picked from commit 23a1f0a6)
parent fe827720
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment