|
5 | 5 | * |
6 | 6 | * Change Logs: |
7 | 7 | * Date Author Notes |
8 | | - * 2021-08-15 liukang the first version |
| 8 | + * 2021-08-15 liukang the first version |
9 | 9 | * 2023-09-15 xqyjlj change stack size in cpu64 |
| 10 | + * 2025-11-17 Ze-Hou add standardized utest documentation block |
| 11 | + */ |
| 12 | + |
| 13 | +/** |
| 14 | + * Test Case Name: Kernel Core Event Test |
| 15 | + * |
| 16 | + * Test Objectives: |
| 17 | + * - Validate the RT-Thread kernel event (rt_event) functionality |
| 18 | + * - Test static and dynamic event object initialization, creation, deletion, |
| 19 | + * sending, receiving, and detachment APIs |
| 20 | + * |
| 21 | + * Test Scenarios: |
| 22 | + * - Initialize and detach a static event object with both PRIO and FIFO modes |
| 23 | + * - Create and delete a dynamic event object (if RT_USING_HEAP is enabled) |
| 24 | + * - Use multiple threads to send and receive event flags, testing both OR and AND logic |
| 25 | + * - Test event sending and receiving with different flag combinations and timing |
| 26 | + * |
| 27 | + * Verification Metrics: |
| 28 | + * - All uassert assertions pass without failure |
| 29 | + * - Event objects are correctly initialized, created, detached, and deleted |
| 30 | + * - Event flags are sent and received as expected, with correct logic and timing |
| 31 | + * |
| 32 | + * Dependencies: |
| 33 | + * - Enable Event Test (RT-Thread Utestcases -> Kernel Core -> Event Test) |
| 34 | + * - Test on any RT-Thread supported platform (e.g., qemu-virt64-riscv) |
| 35 | + * |
| 36 | + * Expected Results: |
| 37 | + * - After executing this test in msh, the expected output should be: |
| 38 | + * "[ PASSED ] [ result ] testcase (core.ipc_event)" |
10 | 39 | */ |
11 | 40 |
|
12 | 41 | #include <rtthread.h> |
|
0 commit comments