* Fix tests needed for https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/435

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
Gaurav-Aggarwal-AWS 2022-01-04 16:14:54 -08:00 committed by GitHub
parent 598508a10b
commit 26dcb22052
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 48 additions and 0 deletions

View file

@ -114,6 +114,7 @@ void test_macro_xQueueSend_blocking_success_locked_no_pending( void )
xTaskCheckForTimeOut_Stub( &xQueueSend_locked_xTaskCheckForTimeOutCB );
xTaskResumeAll_Stub( &td_task_xTaskResumeAllStub );
uxTaskGetNumberOfTasks_IgnoreAndReturn( 1 );
uint32_t testVal2 = getLastMonotonicTestValue() + 12345;
@ -169,6 +170,7 @@ void test_macro_xQueueSend_blocking_fail_locked_high_prio_pending( void )
xTaskCheckForTimeOut_Stub( &xQueueSend_locked_xTaskCheckForTimeOutCB );
xTaskResumeAll_Stub( &xQueueSend_xTaskResumeAllCallback );
uxTaskGetNumberOfTasks_IgnoreAndReturn( 1 );
/* this task is lower priority than the pending task */
td_task_setFakeTaskPriority( DEFAULT_PRIORITY + 1 );
@ -215,6 +217,7 @@ void test_macro_xQueueSend_blocking_success_locked_low_prio_pending( void )
xTaskCheckForTimeOut_Stub( &xQueueSend_locked_xTaskCheckForTimeOutCB );
xTaskResumeAll_Stub( &xQueueSend_xTaskResumeAllCallback );
uxTaskGetNumberOfTasks_IgnoreAndReturn( 1 );
/* The pending task is lower priority */
td_task_setFakeTaskPriority( DEFAULT_PRIORITY - 1 );