summaryrefslogtreecommitdiff
path: root/src/utest
diff options
context:
space:
mode:
authorZe-Hou <[email protected]>2025-11-17 17:24:16 +0800
committerR b b666 <[email protected]>2025-11-18 09:47:46 +0800
commitde784f7cf263aad758f57e56881d0c81fd6aecda (patch)
tree604dc0c3f6f9cbda234bf3a78691b9b008f7d6f6 /src/utest
parent4103870b74486271295a3dae2b6ba3b529485a5f (diff)
feature: utest: add standardized utest documentation to event_tc
Signed-off-by: Ze-Hou <[email protected]>
Diffstat (limited to 'src/utest')
-rw-r--r--src/utest/event_tc.c31
1 files changed, 30 insertions, 1 deletions
diff --git a/src/utest/event_tc.c b/src/utest/event_tc.c
index 3ff4d45fe6..248a3e7c11 100644
--- a/src/utest/event_tc.c
+++ b/src/utest/event_tc.c
@@ -5,8 +5,37 @@
*
* Change Logs:
* Date Author Notes
- * 2021-08-15 liukang the first version
+ * 2021-08-15 liukang the first version
* 2023-09-15 xqyjlj change stack size in cpu64
+ * 2025-11-17 Ze-Hou add standardized utest documentation block
+ */
+
+/**
+ * Test Case Name: Kernel Core Event Test
+ *
+ * Test Objectives:
+ * - Validate the RT-Thread kernel event (rt_event) functionality
+ * - Test static and dynamic event object initialization, creation, deletion,
+ * sending, receiving, and detachment APIs
+ *
+ * Test Scenarios:
+ * - Initialize and detach a static event object with both PRIO and FIFO modes
+ * - Create and delete a dynamic event object (if RT_USING_HEAP is enabled)
+ * - Use multiple threads to send and receive event flags, testing both OR and AND logic
+ * - Test event sending and receiving with different flag combinations and timing
+ *
+ * Verification Metrics:
+ * - All uassert assertions pass without failure
+ * - Event objects are correctly initialized, created, detached, and deleted
+ * - Event flags are sent and received as expected, with correct logic and timing
+ *
+ * Dependencies:
+ * - Enable Event Test (RT-Thread Utestcases -> Kernel Core -> Event Test)
+ * - Test on any RT-Thread supported platform (e.g., qemu-virt64-riscv)
+ *
+ * Expected Results:
+ * - After executing this test in msh, the expected output should be:
+ * "[ PASSED ] [ result ] testcase (core.ipc_event)"
*/
#include <rtthread.h>