Browse Source

test: kenrel: group sleep tests

Group test using doxygen.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
pull/88182/merge
Anas Nashif 3 months ago committed by Benjamin Cabé
parent
commit
a816bfdfec
  1. 35
      tests/kernel/early_sleep/src/main.c

35
tests/kernel/early_sleep/src/main.c

@ -4,25 +4,7 @@ @@ -4,25 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
/*
* @file
* @brief Test early sleep functionality
*
* @defgroup kernel_earlysleep_tests Early Sleep Tests
*
* @ingroup all_tests
*
* This test verifies that k_sleep() can be used to put the calling thread to
* sleep for a specified number of ticks during system initialization. In this
* test we are calling k_sleep() at POST_KERNEL and APPLICATION level
* initialization sequence.
*
* Note: We can not call k_sleep() during PRE_KERNEL1 or PRE_KERNEL2 level
* because the core kernel objects and devices initialization happens at these
* levels.
* @{
* @}
*/
#include <zephyr/init.h>
#include <zephyr/arch/cpu.h>
@ -82,12 +64,19 @@ static int test_early_sleep_app(void) @@ -82,12 +64,19 @@ static int test_early_sleep_app(void)
SYS_INIT(test_early_sleep_app, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
/**
* @brief Test early sleep
/*
* @brief Test early sleep functionality
*
* @ingroup kernel_sleep_tests
*
* @ingroup kernel_earlysleep_tests
* This test verifies that k_sleep() can be used to put the calling thread to
* sleep for a specified number of ticks during system initialization. In this
* test we are calling k_sleep() at POST_KERNEL and APPLICATION level
* initialization sequence.
*
* @see k_sleep()
* Note: We can not call k_sleep() during PRE_KERNEL1 or PRE_KERNEL2 level
* because the core kernel objects and devices initialization happens at these
* levels.
*/
ZTEST(earlysleep, test_early_sleep)
{

Loading…
Cancel
Save