test: posix: common: nanosleep test fix
in test_nanosleep_execution, the
actual_ns = k_cyc_to_ns_ceil64((now - then * selection));
is wrong, according to posix driver code
lib/posix/clock.c
line: 156
if ((flags & TIMER_ABSTIME) == 0) {
ns += uptime_ns;
}
so we need change to
actual_ns = k_cyc_to_ns_ceil64((now + then * selection));
fixing: #62889
Co-authored-by:
Christopher Friedt <cfriedt@meta.com>
Signed-off-by:
Hake Huang <hake.huang@oss.nxp.com>
Loading
Please sign in to comment