mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-15 16:15:08 -05:00
Fix tests needed for https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/435 (#766)
* 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:
parent
598508a10b
commit
26dcb22052
7 changed files with 48 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue