mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-23 11:09:28 -05:00
Update for kernel idle task unit test (#1096)
* Update unit test to cover idle task name longer than configMAX_TASK_NAME_LEN * Update community supported demo submodule pointer * Update kernel submodule pointer * Update CBMC test --------- Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
This commit is contained in:
parent
d73470e936
commit
d3575643b8
6 changed files with 7 additions and 6 deletions
|
|
@ -38,7 +38,7 @@
|
|||
"CBMCFLAGS":
|
||||
[
|
||||
"--unwind 1",
|
||||
"--unwindset prvInitialiseTaskLists.0:8,prvInitialiseNewTask.0:16,prvInitialiseNewTask.1:4"
|
||||
"--unwindset prvInitialiseTaskLists.0:8,prvInitialiseNewTask.0:16,prvInitialiseNewTask.1:4,prvCreateIdleTasks.0:20,prvCreateIdleTasks.1:2"
|
||||
],
|
||||
"OBJS":
|
||||
[
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@
|
|||
#define configTICK_RATE_HZ ( 1000 ) /* In this non-real time simulated environment the tick frequency has to be at least a multiple of the Win32 tick frequency, and therefore very slow. */
|
||||
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 70 ) /* In this simulated case, the stack only has to hold one small structure as the real stack is part of the win32 thread. */
|
||||
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 52 * 1024 ) )
|
||||
#define configIDLE_TASK_NAME "IdleTaskLongerThanMax"
|
||||
#define configMAX_TASK_NAME_LEN ( 12 )
|
||||
#define configUSE_TRACE_FACILITY 0
|
||||
#define configUSE_16_BIT_TICKS 0
|
||||
|
|
|
|||
|
|
@ -3229,7 +3229,7 @@ void test_xTaskGetIdleTaskHandle_success( void )
|
|||
/* Api Call */
|
||||
ret_idle_handle = xTaskGetIdleTaskHandle();
|
||||
ptcb = ret_idle_handle;
|
||||
ret = strcmp( ptcb->pcTaskName, "IDLE" );
|
||||
ret = strncmp( ptcb->pcTaskName, configIDLE_TASK_NAME, configMAX_TASK_NAME_LEN - 1 );
|
||||
TEST_ASSERT_EQUAL( 0, ret );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue