File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
FreeRTOS/Test/CMock/queue/sets Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 3939#include "mock_fake_port.h"
4040
4141/* ============================ GLOBAL VARIABLES =========================== */
42+ #define EVENT_QUEUE_LENGTH 5
4243
4344/* ========================== CALLBACK FUNCTIONS =========================== */
4445
@@ -124,6 +125,19 @@ void test_xQueueCreateSet_oneLength( void )
124125 vQueueDelete ( xQueueSet );
125126}
126127
128+ void test_xQueueCreateSetStatic_HappyPath ( void )
129+ {
130+ StaticQueue_t xQueueSetBuffer ;
131+ QueueHandle_t xQueueSetStorage [ EVENT_QUEUE_LENGTH ];
132+ QueueSetHandle_t xQueueSet = NULL ;
133+
134+ xQueueSet = xQueueCreateSetStatic ( EVENT_QUEUE_LENGTH ,
135+ ( uint8_t * ) & ( xQueueSetStorage [ 0 ] ),
136+ & ( xQueueSetBuffer ) );
137+
138+ TEST_ASSERT_NOT_NULL ( xQueueSet );
139+ }
140+
127141/**
128142 * @brief Test xQueueAddToSet with the same queue twice
129143 * @coverage xQueueAddToSet
You can’t perform that action at this time.
0 commit comments