From a816bfdfec0df221a584708ad59970ffca2d1b37 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 21 Apr 2025 06:49:24 -0400 Subject: [PATCH] test: kenrel: group sleep tests Group test using doxygen. Signed-off-by: Anas Nashif --- tests/kernel/early_sleep/src/main.c | 35 ++++++++++------------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/tests/kernel/early_sleep/src/main.c b/tests/kernel/early_sleep/src/main.c index 6c4614e4ba8..7b1f319158d 100644 --- a/tests/kernel/early_sleep/src/main.c +++ b/tests/kernel/early_sleep/src/main.c @@ -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 #include @@ -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) {