Skip to content

Commit

Permalink
Fix state handling APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-josi-aws committed Jun 2, 2024
1 parent 43e7c21 commit b33985c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1800,6 +1800,7 @@ void test_prvTCPSocketCopy_BindError( void )
pxSocket->u.xTCP.uxTxWinSize = 0x123456;
pxSocket->pxSocketSet = ( struct xSOCKET_SET * ) 0x1111111;
pxSocket->xSelectBits = eSELECT_READ;
pxSocket->u.xTCP.pxPeerSocket = &MockReturnSocket;

FreeRTOS_GetLocalAddress_ExpectAndReturn( pxSocket, NULL, pdTRUE );
FreeRTOS_GetLocalAddress_IgnoreArg_pxAddress();
Expand All @@ -1811,6 +1812,7 @@ void test_prvTCPSocketCopy_BindError( void )
TEST_ASSERT_NOT_EQUAL( pxSocket->usLocalPort, MockReturnSocket.usLocalPort );
TEST_ASSERT_EQUAL( pxSocket->u.xTCP.uxTxWinSize, MockReturnSocket.u.xTCP.uxTxWinSize );
TEST_ASSERT_EQUAL( ( pxSocket->xSelectBits | eSELECT_READ | eSELECT_EXCEPT ), MockReturnSocket.xSelectBits );
TEST_ASSERT_EQUAL( pxSocket->u.xTCP.pxPeerSocket, &MockReturnSocket );
}

/**
Expand Down

0 comments on commit b33985c

Please sign in to comment.