commit | 75b9292a307b26b4158d2e6b44a5dd50074f958d | [log] [tgz] |
---|---|---|
author | Christopher Friedt <chrisfriedt@gmail.com> | Mon Sep 21 23:32:46 2020 -0400 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Fri Oct 02 11:31:43 2020 +0200 |
tree | 2f5b7e5b4c7913fd2bc46846e5fb5eee1ee55788 | |
parent | 3cdf718d5bcceb76ab47e23dc0352f8ea24edadf [diff] |
tests: posix: nanosleep: round up to the nearest microsecond Here, we include some addtional tests for durations that have sub-microsecond components. 1ns => k_busy_wait(0). Round to 1us. 1us + 1ns => k_busy_wait(1us). Round to 2us. 1s + 1ns => k_busy_wait(1000000us). Round to 1000001us. 1s + 1us + 1ns => k_busy_wait(1000001us). Round to 1000002us. Fixes #28483 Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>