|
|
@ -39,6 +39,7 @@
|
|
|
|
#include "mock_fake_port.h"
|
|
|
|
#include "mock_fake_port.h"
|
|
|
|
|
|
|
|
|
|
|
|
/* ============================ GLOBAL VARIABLES =========================== */
|
|
|
|
/* ============================ GLOBAL VARIABLES =========================== */
|
|
|
|
|
|
|
|
#define EVENT_QUEUE_LENGTH 5
|
|
|
|
|
|
|
|
|
|
|
|
/* ========================== CALLBACK FUNCTIONS =========================== */
|
|
|
|
/* ========================== CALLBACK FUNCTIONS =========================== */
|
|
|
|
|
|
|
|
|
|
|
@ -124,6 +125,19 @@ void test_xQueueCreateSet_oneLength( void )
|
|
|
|
vQueueDelete( xQueueSet );
|
|
|
|
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
|
|
|
|
* @brief Test xQueueAddToSet with the same queue twice
|
|
|
|
* @coverage xQueueAddToSet
|
|
|
|
* @coverage xQueueAddToSet
|
|
|
|