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:
Richard Barry 2018-03-05 21:35:50 +00:00
parent f9bef06ec0
commit c156522695
7 changed files with 116 additions and 48 deletions

View file

@ -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. */

View file

@ -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