Skip to content

Commit a816bfd

Browse files
nashifkartben
authored andcommitted
test: kenrel: group sleep tests
Group test using doxygen. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent 39b1312 commit a816bfd

File tree

1 file changed

+12
-23
lines changed
  • tests/kernel/early_sleep/src

1 file changed

+12
-23
lines changed

tests/kernel/early_sleep/src/main.c

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
/*
8-
* @file
9-
* @brief Test early sleep functionality
10-
*
11-
* @defgroup kernel_earlysleep_tests Early Sleep Tests
12-
*
13-
* @ingroup all_tests
14-
*
15-
* This test verifies that k_sleep() can be used to put the calling thread to
16-
* sleep for a specified number of ticks during system initialization. In this
17-
* test we are calling k_sleep() at POST_KERNEL and APPLICATION level
18-
* initialization sequence.
19-
*
20-
* Note: We can not call k_sleep() during PRE_KERNEL1 or PRE_KERNEL2 level
21-
* because the core kernel objects and devices initialization happens at these
22-
* levels.
23-
* @{
24-
* @}
25-
*/
7+
268

279
#include <zephyr/init.h>
2810
#include <zephyr/arch/cpu.h>
@@ -82,12 +64,19 @@ static int test_early_sleep_app(void)
8264

8365
SYS_INIT(test_early_sleep_app, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
8466

85-
/**
86-
* @brief Test early sleep
67+
/*
68+
* @brief Test early sleep functionality
69+
*
70+
* @ingroup kernel_sleep_tests
8771
*
88-
* @ingroup kernel_earlysleep_tests
72+
* This test verifies that k_sleep() can be used to put the calling thread to
73+
* sleep for a specified number of ticks during system initialization. In this
74+
* test we are calling k_sleep() at POST_KERNEL and APPLICATION level
75+
* initialization sequence.
8976
*
90-
* @see k_sleep()
77+
* Note: We can not call k_sleep() during PRE_KERNEL1 or PRE_KERNEL2 level
78+
* because the core kernel objects and devices initialization happens at these
79+
* levels.
9180
*/
9281
ZTEST(earlysleep, test_early_sleep)
9382
{

0 commit comments

Comments
 (0)