Add uxQueueGetQueueLength API in queue unit tests (#1074)

* Add uxQueueGetQueueLength API in queue unit tests
for code coverage

* Update Submodule pointer for Kernel V10.6.1

Signed-off-by: kar-rahul-aws <karahulx@amazon.com>
This commit is contained in:
kar-rahul-aws 2023-08-18 16:13:50 +05:30 committed by GitHub
parent 0948c5eab6
commit 80db00d98b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 2 deletions

View file

@ -138,6 +138,9 @@ void test_macro_xQueueCreateStatic_nullQueueStorage_oneItem_zeroLength( void )
/* validate returned queue handle */
TEST_ASSERT_NOT_EQUAL( NULL, xQueue );
/* Verify that Queue Length is one */
TEST_ASSERT_EQUAL( 1, uxQueueGetQueueLength( xQueue ) );
/* Verify that Queue ItemSize is zero */
TEST_ASSERT_EQUAL( 0, uxQueueGetQueueItemSize( xQueue ) );
@ -208,6 +211,9 @@ void test_macro_xQueueCreateStatic_large( void )
StaticQueue_t queueBuffer;
QueueHandle_t xQueue = xQueueCreateStatic( MAX_QUEUE_ITEMS, sizeof( uint32_t ), ( void * ) queueStorage, &queueBuffer );
/* Verify that Queue Length is equal to the MAX_QUEUE_ITEMS */
TEST_ASSERT_EQUAL( MAX_QUEUE_ITEMS, uxQueueGetQueueLength( xQueue ) );
/* Verify that Queue ItemSize is 4 */
TEST_ASSERT_EQUAL( 4, uxQueueGetQueueItemSize( xQueue ) );