test: Fix multiple defs of util vars

This commit is contained in:
David Cermak
2025-07-15 16:14:21 +02:00
parent 2a14051bfb
commit e9b8482e75
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ typedef enum {
PACKET_PBUF_REF PACKET_PBUF_REF
} packet_type_t; } packet_type_t;
unsigned char *packet_buffer[1518]; static unsigned char *packet_buffer[1518];
static int random_mock = -1; static int random_mock = -1;
/* Mock the esp-random to return 0 for easier result checking */ /* Mock the esp-random to return 0 for easier result checking */
uint32_t esp_random(void) uint32_t esp_random(void)
+1 -1
View File
@@ -20,7 +20,7 @@ static int ap_cnt = 0;
static int sta_cnt = 0; static int sta_cnt = 0;
static u8_t ap_output_p_type_internal = (PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP); static u8_t ap_output_p_type_internal = (PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP);
static u8_t sta_output_p_type_internal = (PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP); static u8_t sta_output_p_type_internal = (PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP);
unsigned char packet_buffer[sizeof(struct ip6_hdr) + IP6_PAYLOAD_LEN]; static unsigned char packet_buffer[sizeof(struct ip6_hdr) + IP6_PAYLOAD_LEN];
/* Setups/teardown functions */ /* Setups/teardown functions */
static void static void