Skip to content

Commit

Permalink
Fix uxStreamBufferAdd unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lzungri authored Sep 4, 2024
1 parent a07ce52 commit 82e01fd
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -601,9 +601,6 @@ void test_uxStreamBufferAdd_BufferHasMoreSpaceThanData_ZeroOffset_DataWriteCause

FreeRTOS_min_size_t_Stub( FreeRTOS_min_stub );

vTaskSuspendAll_Expect();
xTaskResumeAll_ExpectAndReturn( pdTRUE );

uxReturn = uxStreamBufferAdd( pxLocalBuffer, uxOffset, pucData, uxByteCount );

/* Only these many bytes should be written. */
Expand Down Expand Up @@ -656,9 +653,6 @@ void test_uxStreamBufferAdd_BufferHasLessSpaceThanData_ZeroOffset( void )

FreeRTOS_min_size_t_Stub( FreeRTOS_min_stub );

vTaskSuspendAll_Expect();
xTaskResumeAll_ExpectAndReturn( pdTRUE );

uxReturn = uxStreamBufferAdd( pxLocalBuffer, uxOffset, pucData, uxByteCount );

/* Only 500 bytes should be written. */
Expand Down Expand Up @@ -702,9 +696,6 @@ void test_uxStreamBufferAdd_BufferHasLessSpaceThanData_NonZeroOffset( void )

FreeRTOS_min_size_t_Stub( FreeRTOS_min_stub );

vTaskSuspendAll_Expect();
xTaskResumeAll_ExpectAndReturn( pdTRUE );

uxReturn = uxStreamBufferAdd( pxLocalBuffer, uxOffset, pucData, uxByteCount );

/* Only these many bytes should be written. */
Expand Down Expand Up @@ -757,9 +748,6 @@ void test_uxStreamBufferAdd_BufferHasLessSpaceThanData_NonZeroOffsetCausesRollov

FreeRTOS_min_size_t_Stub( FreeRTOS_min_stub );

vTaskSuspendAll_Expect();
xTaskResumeAll_ExpectAndReturn( pdTRUE );

uxReturn = uxStreamBufferAdd( pxLocalBuffer, uxOffset, pucData, uxByteCount );

/* Only these many bytes should be written. */
Expand Down Expand Up @@ -813,9 +801,6 @@ void test_uxStreamBufferAdd_BufferHasLessSpaceThanData_ZeroOffset_DataWriteCause

FreeRTOS_min_size_t_Stub( FreeRTOS_min_stub );

vTaskSuspendAll_Expect();
xTaskResumeAll_ExpectAndReturn( pdTRUE );

uxReturn = uxStreamBufferAdd( pxLocalBuffer, uxOffset, pucData, uxByteCount );

/* Only these many bytes should be written. */
Expand Down Expand Up @@ -873,9 +858,6 @@ void test_uxStreamBufferAdd_NULLData_BufferHasLessSpaceThanData_ZeroOffset_DataW

FreeRTOS_min_size_t_Stub( FreeRTOS_min_stub );

vTaskSuspendAll_Expect();
xTaskResumeAll_ExpectAndReturn( pdTRUE );

uxReturn = uxStreamBufferAdd( pxLocalBuffer, uxOffset, NULL, uxByteCount );

/* Nothing should be written but tail will be updated. */
Expand Down Expand Up @@ -929,9 +911,6 @@ void test_uxStreamBufferAdd_NULLData_BufferHasLessSpaceThanData_ZeroOffset_DataW

FreeRTOS_min_size_t_Stub( FreeRTOS_min_stub );

vTaskSuspendAll_Expect();
xTaskResumeAll_ExpectAndReturn( pdTRUE );

uxReturn = uxStreamBufferAdd( pxLocalBuffer, uxOffset, NULL, uxByteCount );

/* Nothing should be written but tail should be updated. */
Expand Down

0 comments on commit 82e01fd

Please sign in to comment.