Zephyr Project API 3.7.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Sleep Tests

Test sleep and wakeup APIs. More...

Functions

 ZTEST (sleep, test_sleep)
 Test sleep functionality.
 

Detailed Description

Test sleep and wakeup APIs.

This module tests the following sleep and wakeup scenarios:

  1. k_sleep() without cancellation
  2. k_sleep() cancelled via k_wakeup()
  3. k_sleep() cancelled via k_wakeup()
  4. k_sleep() cancelled via k_wakeup()
  5. k_sleep() - no cancellation exists

Function Documentation

◆ ZTEST()

ZTEST ( sleep  ,
test_sleep   
)

#include <tests/kernel/sleep/src/main.c>

Test sleep functionality.

See also
k_sleep(), k_wakeup(), k_uptime_get_32()