* 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

@ -1001,6 +1001,8 @@ void test_xQueueReceiveFromISR_locked( void )
( void ) xQueueSend( xQueue, &testVal, 0 );
uxTaskGetNumberOfTasks_IgnoreAndReturn( 1 );
/* Set private lock counters */
vSetQueueRxLock( xQueue, queueLOCKED_UNMODIFIED );
vSetQueueTxLock( xQueue, queueLOCKED_UNMODIFIED );
@ -1043,6 +1045,10 @@ void test_xQueueReceiveFromISR_locked_overflow( void )
uint32_t checkVal = INVALID_UINT32;
/* The number of tasks need to be more than 127 to trigger the
* overflow assertion. */
uxTaskGetNumberOfTasks_IgnoreAndReturn( 128 );
/* Expect an assertion since the cRxLock value has overflowed */
fakeAssertExpectFail();