Lines Matching +full:wakeup +full:- +full:and +full:- +full:sleep
4 * SPDX-License-Identifier: Apache-2.0
20 #define TEST_THREAD_PRIORITY -4
21 #define HELPER_THREAD_PRIORITY -10
54 * @brief Test sleep and wakeup APIs
56 * @defgroup kernel_sleep_tests Sleep Tests
60 * This module tests the following sleep and wakeup scenarios:
65 * 5. k_sleep() - no cancellation exists
89 /* Shouldn't ever sleep for less than requested time, but allow for 1
90 * tick of "too long" slop for aliasing between wakeup and
96 uint32_t dt = end - start; in sleep_time_valid()
120 end_tick - start_tick, ONE_SECOND_ALIGNED); in test_thread()
132 if (end_tick - start_tick > TICK_MARGIN) { in test_thread()
134 end_tick - start_tick); in test_thread()
145 if (end_tick - start_tick > TICK_MARGIN) { in test_thread()
147 end_tick - start_tick); in test_thread()
158 if (end_tick - start_tick > TICK_MARGIN) { in test_thread()
160 end_tick - start_tick); in test_thread()
187 * @brief Test sleep functionality
193 ZTEST(sleep, test_sleep) in ZTEST() argument
201 * priority -1. To run the test smoothly make both main and ztest in ZTEST()
236 end_tick - start_tick, ONE_SECOND_ALIGNED); in ZTEST()
250 ZTEST(sleep, test_sleep_forever) in ZTEST() argument
276 ZTEST_SUITE(sleep, NULL, sleep_setup,