diff --git a/FreeRTOS/Test/CMock/queue/sets/queue_set_utest.c b/FreeRTOS/Test/CMock/queue/sets/queue_set_utest.c index 4432faaaadf..eed7d34eae7 100644 --- a/FreeRTOS/Test/CMock/queue/sets/queue_set_utest.c +++ b/FreeRTOS/Test/CMock/queue/sets/queue_set_utest.c @@ -39,6 +39,7 @@ #include "mock_fake_port.h" /* ============================ GLOBAL VARIABLES =========================== */ +#define EVENT_QUEUE_LENGTH 5 /* ========================== CALLBACK FUNCTIONS =========================== */ @@ -124,6 +125,19 @@ void test_xQueueCreateSet_oneLength( void ) vQueueDelete( xQueueSet ); } +void test_xQueueCreateSetStatic_HappyPath( void ) +{ + StaticQueue_t xQueueSetBuffer; + QueueHandle_t xQueueSetStorage[ EVENT_QUEUE_LENGTH ]; + QueueSetHandle_t xQueueSet = NULL; + + xQueueSet = xQueueCreateSetStatic( EVENT_QUEUE_LENGTH, + ( uint8_t * ) &( xQueueSetStorage[ 0 ] ), + &( xQueueSetBuffer ) ); + + TEST_ASSERT_NOT_NULL( xQueueSet ); +} + /** * @brief Test xQueueAddToSet with the same queue twice * @coverage xQueueAddToSet