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

@ -154,6 +154,9 @@ void test_macro_xQueueCreate_oneItem_zeroLength( void )
TEST_ASSERT_EQUAL( QUEUE_T_SIZE, getLastMallocSize() );
/* Verify that Queue Length is one */
TEST_ASSERT_EQUAL( 1, uxQueueGetQueueLength( xQueue ) );
/* Verify that Queue ItemSize is zero */
TEST_ASSERT_EQUAL( 0, uxQueueGetQueueItemSize( xQueue ) );
@ -180,6 +183,9 @@ void test_macro_xQueueCreate_oneItem_oneLength( void )
TEST_ASSERT_EQUAL( QUEUE_T_SIZE + 1, getLastMallocSize() );
/* Verify that Queue Length is one */
TEST_ASSERT_EQUAL( 1, uxQueueGetQueueLength( xQueue ) );
/* Verify that Queue ItemSize is one */
TEST_ASSERT_EQUAL( 1, uxQueueGetQueueItemSize( xQueue ) );
@ -228,6 +234,9 @@ void test_macro_xQueueCreate_oneItem_multiLength( void )
TEST_ASSERT_EQUAL( QUEUE_T_SIZE + i, getLastMallocSize() );
/* Verify that Queue Length is one */
TEST_ASSERT_EQUAL( 1, uxQueueGetQueueLength( xQueue ) );
/* Verify that Queue ItemSize is equal to the mailbox size */
TEST_ASSERT_EQUAL( i, uxQueueGetQueueItemSize( xQueue ) );