* 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

@ -604,6 +604,7 @@ void test_macro_xQueueSendFromISR_locked( void )
vSetQueueTxLock( xQueue, queueLOCKED_UNMODIFIED );
vFakePortAssertIfInterruptPriorityInvalid_Expect();
uxTaskGetNumberOfTasks_IgnoreAndReturn( 1 );
uint32_t testval = getNextMonotonicTestValue();
@ -641,6 +642,10 @@ void test_macro_xQueueSendFromISR_locked_overflow( void )
vFakePortAssertIfInterruptPriorityInvalid_Expect();
/* The number of tasks need to be more than 127 to trigger the
* overflow assertion. */
uxTaskGetNumberOfTasks_IgnoreAndReturn( 128 );
/* Expect an assertion since the cTxLock value has overflowed */
fakeAssertExpectFail();