Research Article
Embedded Microprocessor Extension Design and Optimization for Real-Time Edge Computing
Table 5
Description of verification test cases.
(a) |
| Test case name | Test content (thread management) |
| TC_ThreadCreate | Create threads with different priorities and parameters | TC_ThreadMultiInstance | Create multiple threads and check the running results | TC_ThreadTerminate | Create a child thread and then terminate it. | TC_ThreadGetId | Create multiple threads and check the thread ID | TC_ThreadPriority | Repeatedly modify the thread priority | TC_ThreadChainedCreate | Create nested child threads and check the child threads | TC_ThreadParam | Pass invalid parameters to all thread control interfaces |
|
|
(b) |
| Test case name | Test content (timer control) |
| TC_TimerOneShot | Create a timer that runs only once and check the result | TC_TimerPeriodic | Create a timer that runs periodically and repeatedly | TC_TimerParam | Pass invalid parameters to all timer control interfaces |
|
|
(c) |
| Test case name | Test content (Mutex) |
| TC_MutexBasic | Create, obtain, and release mutexes, respectively | TC_MutexCheckTimeout | Create mutex, wait for fixed time and infinite time | TC_MutexNestedAcquire | Create a nested mutex to test the behavior is abnormal | TC_MutexParam | Pass invalid parameters to all mutex control interfaces |
|
|