test: kenrel: group sleep tests

Group test using doxygen.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2025-04-21 06:49:24 -04:00 committed by Benjamin Cabé
commit a816bfdfec

View file

@ -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)
SYS_INIT(test_early_sleep_app, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
/**
* @brief Test early sleep
/*
* @brief Test early sleep functionality
*
* @ingroup kernel_earlysleep_tests
* @ingroup kernel_sleep_tests
*
* @see k_sleep()
* 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.
*/
ZTEST(earlysleep, test_early_sleep)
{