mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-10 21:55:07 -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
|
|
@ -1 +1 @@
|
||||||
Subproject commit 6f2ad4418406c54973a799063021174a2f477b43
|
Subproject commit 1ba24b127f11544263209a65f49cffdd7e42f04a
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 7372519cba39922ce5aeb92b8931cf8694b78bd2
|
Subproject commit 4bfb9b2d707304917f35fd5e7dcf692abb3d0cb2
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
"CBMCFLAGS":
|
"CBMCFLAGS":
|
||||||
[
|
[
|
||||||
"--unwind 1",
|
"--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":
|
"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 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 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 configTOTAL_HEAP_SIZE ( ( size_t ) ( 52 * 1024 ) )
|
||||||
|
#define configIDLE_TASK_NAME "IdleTaskLongerThanMax"
|
||||||
#define configMAX_TASK_NAME_LEN ( 12 )
|
#define configMAX_TASK_NAME_LEN ( 12 )
|
||||||
#define configUSE_TRACE_FACILITY 0
|
#define configUSE_TRACE_FACILITY 0
|
||||||
#define configUSE_16_BIT_TICKS 0
|
#define configUSE_16_BIT_TICKS 0
|
||||||
|
|
|
||||||
|
|
@ -3229,7 +3229,7 @@ void test_xTaskGetIdleTaskHandle_success( void )
|
||||||
/* Api Call */
|
/* Api Call */
|
||||||
ret_idle_handle = xTaskGetIdleTaskHandle();
|
ret_idle_handle = xTaskGetIdleTaskHandle();
|
||||||
ptcb = ret_idle_handle;
|
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 );
|
TEST_ASSERT_EQUAL( 0, ret );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ license: "MIT"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: "FreeRTOS-Kernel"
|
- name: "FreeRTOS-Kernel"
|
||||||
version: "7372519cb"
|
version: "4bfb9b2d7"
|
||||||
repository:
|
repository:
|
||||||
type: "git"
|
type: "git"
|
||||||
url: "https://github.com/FreeRTOS/FreeRTOS-Kernel.git"
|
url: "https://github.com/FreeRTOS/FreeRTOS-Kernel.git"
|
||||||
|
|
@ -131,7 +131,7 @@ dependencies:
|
||||||
path: "FreeRTOS-Plus/Source/Application-Protocols/coreSNTP"
|
path: "FreeRTOS-Plus/Source/Application-Protocols/coreSNTP"
|
||||||
|
|
||||||
- name: "FreeRTOS-Community-Supported-Demos"
|
- name: "FreeRTOS-Community-Supported-Demos"
|
||||||
version: "6f2ad44"
|
version: "1ba24b1"
|
||||||
repository:
|
repository:
|
||||||
type: "git"
|
type: "git"
|
||||||
url: "https://github.com/FreeRTOS/FreeRTOS-Community-Supported-Demos"
|
url: "https://github.com/FreeRTOS/FreeRTOS-Community-Supported-Demos"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue