tests: posix: semaphores: use timespec_add() to add to abstime
Use `timespec_add()` to add to an absolute timespec. This is required
because the test was failing occasionally on some qemu platforms in CI
due to this assertion in `timespec_normalize()`, which could happen if
the number of fractional seconds was already close to `NSEC_PER_SEC`
before an offset was added.
```cpp
if (!overflow) {
__ASSERT_NO_MSG(timespec_is_valid(ts));
}
```
Signed-off-by:
Chris Friedt <cfriedt@tenstorrent.com>
Loading
Please sign in to comment