mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-01 08:54:14 -04:00
Complete testing of changes that allow xQueueOverwrite() to be used on a queue that is part of a queue set.
Fix some compiler warnings in stream_buffer.c. Update the MingW/Eclipse project so it also includes static allocation tests.
This commit is contained in:
parent
f9bef06ec0
commit
c156522695
7 changed files with 116 additions and 48 deletions
|
@ -624,7 +624,7 @@ const UBaseType_t xLengthOfOne = ( UBaseType_t ) 1;
|
|||
/* Add an item to the queue then ensure the queue set correctly
|
||||
indicates that one item is available, and that that item is indeed the
|
||||
queue written to. */
|
||||
xQueueSend( xQueueHandle, ( void * ) &ulValueToSend, 0 );
|
||||
xQueueOverwrite( xQueueHandle, ( void * ) &ulValueToSend );
|
||||
if( uxQueueMessagesWaiting( xQueueSet ) != ( UBaseType_t ) 1 )
|
||||
{
|
||||
/* Expected one item in the queue set. */
|
||||
|
|
|
@ -600,7 +600,7 @@ BaseType_t xNonBlockingReceiveError = pdFALSE;
|
|||
xBytesToSend = xStringLength - xNextChar;
|
||||
|
||||
/* Attempt to send right up to the end of the string. */
|
||||
xBytesActuallySent = xStreamBufferSend( xStreamBuffer, ( void * ) &( pc55ByteString[ xNextChar ] ), xBytesToSend, xTicksToWait );
|
||||
xBytesActuallySent = xStreamBufferSend( xStreamBuffer, ( const void * ) &( pc55ByteString[ xNextChar ] ), xBytesToSend, xTicksToWait );
|
||||
configASSERT( xBytesActuallySent <= xBytesToSend );
|
||||
|
||||
/* Move the index up the string to the next character to be sent,
|
||||
|
@ -661,7 +661,7 @@ BaseType_t xNonBlockingReceiveError = pdFALSE;
|
|||
} while( xReceivedLength == 0 );
|
||||
|
||||
/* Ensure the received string matches the expected string. */
|
||||
configASSERT( memcmp( ( void * ) cRxString, ( void * ) &( pc55ByteString[ xNextChar ] ), xReceivedLength ) == 0 );
|
||||
configASSERT( memcmp( ( void * ) cRxString, ( const void * ) &( pc55ByteString[ xNextChar ] ), xReceivedLength ) == 0 );
|
||||
|
||||
/* Move the index into the string up to the end of the bytes
|
||||
received so far - wrapping if the end of the string has been
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue