Skip to content

Commit

Permalink
Merge pull request #4 from FreeRTOS/main
Browse files Browse the repository at this point in the history
Wrong test in function prvTCPSendLoop() (FreeRTOS#1043)
  • Loading branch information
htibosch authored Nov 21, 2023
2 parents 7691aef + c263e33 commit db12f68
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,6 @@ void test_FreeRTOS_send_ExactSpaceInStreamBuffer( void )
xTaskResumeAll_ExpectAndReturn( pdFALSE );
xIsCallingFromIPTask_ExpectAndReturn( pdFALSE );
xSendEventToIPTask_ExpectAndReturn( eTCPTimerEvent, pdPASS );
xIsCallingFromIPTask_ExpectAndReturn( pdFALSE );

xReturn = FreeRTOS_send( &xSocket, pvBuffer, uxDataLength, xFlags );

Expand All @@ -1008,7 +1007,6 @@ void test_FreeRTOS_send_ExactSpaceInStreamBuffer( void )
uxStreamBufferAdd_ExpectAndReturn( xSocket.u.xTCP.txStream, 0U, pvBuffer, uxDataLength, uxDataLength );
xIsCallingFromIPTask_ExpectAndReturn( pdFALSE );
xSendEventToIPTask_ExpectAndReturn( eTCPTimerEvent, pdPASS );
xIsCallingFromIPTask_ExpectAndReturn( pdFALSE );
xReturn = FreeRTOS_send( &xSocket, pvBuffer, uxDataLength, xFlags );

TEST_ASSERT_EQUAL( uxDataLength, xReturn );
Expand Down Expand Up @@ -1044,7 +1042,6 @@ void test_FreeRTOS_send_MoreSpaceInStreamBuffer( void )
xTaskResumeAll_ExpectAndReturn( pdFALSE );
xIsCallingFromIPTask_ExpectAndReturn( pdFALSE );
xSendEventToIPTask_ExpectAndReturn( eTCPTimerEvent, pdPASS );
xIsCallingFromIPTask_ExpectAndReturn( pdFALSE );
xReturn = FreeRTOS_send( &xSocket, pvBuffer, uxDataLength, xFlags );

TEST_ASSERT_EQUAL( uxDataLength, xReturn );
Expand Down Expand Up @@ -1132,7 +1129,6 @@ void test_FreeRTOS_send_LessSpaceInStreamBuffer_EventuallySpaceAvailable( void )
uxStreamBufferAdd_ExpectAndReturn( xSocket.u.xTCP.txStream, 0U, &pvBuffer[ 80 ], 20, 20 );
xIsCallingFromIPTask_ExpectAndReturn( pdFALSE );
xSendEventToIPTask_ExpectAndReturn( eTCPTimerEvent, pdFALSE );
xTaskCheckForTimeOut_ExpectAnyArgsAndReturn( pdTRUE );

xReturn = FreeRTOS_send( &xSocket, pvBuffer, uxDataLength, xFlags );

Expand Down Expand Up @@ -1290,7 +1286,6 @@ void test_FreeRTOS_send_IPTaskWithNULLBuffer_LessSpaceInStreamBuffer( void )
uxStreamBufferGetSpace_ExpectAndReturn( xSocket.u.xTCP.txStream, uxDataLength - 20 );
uxStreamBufferAdd_ExpectAndReturn( xSocket.u.xTCP.txStream, 0U, NULL, uxDataLength - 20, uxDataLength - 20 );
xIsCallingFromIPTask_ExpectAndReturn( pdTRUE );
xIsCallingFromIPTask_ExpectAndReturn( pdTRUE );

xReturn = FreeRTOS_send( &xSocket, NULL, uxDataLength, xFlags );

Expand Down Expand Up @@ -1360,7 +1355,6 @@ void test_FreeRTOS_send_ExactSpaceInStreamBufferInIPTask( void )
uxStreamBufferAdd_ExpectAndReturn( xSocket.u.xTCP.txStream, 0U, pvBuffer, uxDataLength, uxDataLength );
xTaskResumeAll_ExpectAndReturn( pdFALSE );
xIsCallingFromIPTask_ExpectAndReturn( pdTRUE );
xIsCallingFromIPTask_ExpectAndReturn( pdFALSE );

xReturn = FreeRTOS_send( &xSocket, pvBuffer, uxDataLength, xFlags );

Expand Down

0 comments on commit db12f68

Please sign in to comment.