Research Article

Embedded Microprocessor Extension Design and Optimization for Real-Time Edge Computing

Table 5

Description of verification test cases.
(a)

Test case nameTest content (thread management)

TC_ThreadCreateCreate threads with different priorities and parameters
TC_ThreadMultiInstanceCreate multiple threads and check the running results
TC_ThreadTerminateCreate a child thread and then terminate it.
TC_ThreadGetIdCreate multiple threads and check the thread ID
TC_ThreadPriorityRepeatedly modify the thread priority
TC_ThreadChainedCreateCreate nested child threads and check the child threads
TC_ThreadParamPass invalid parameters to all thread control interfaces

(b)

Test case nameTest content (timer control)

TC_TimerOneShotCreate a timer that runs only once and check the result
TC_TimerPeriodicCreate a timer that runs periodically and repeatedly
TC_TimerParamPass invalid parameters to all timer control interfaces

(c)

Test case nameTest content (Mutex)

TC_MutexBasicCreate, obtain, and release mutexes, respectively
TC_MutexCheckTimeoutCreate mutex, wait for fixed time and infinite time
TC_MutexNestedAcquireCreate a nested mutex to test the behavior is abnormal
TC_MutexParamPass invalid parameters to all mutex control interfaces