summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/test/test.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2023-03-16 16:55:38 +0000
committerFlorin Coras <florin.coras@gmail.com>2023-03-17 16:34:06 +0000
commitc7d3a5b9688e094fde987d0caff2bfb826e7e4e1 (patch)
treed4f87a4d7b8e80fb21c5cc817b862f68e9b55190 /src/vppinfra/test/test.h
parentf8b61fb538046e287063864349d43e98b62b5faf (diff)
vppinfra: auto-free test memory
Type: improvement Change-Id: Ibc40a02c8c45fc8d9409c9a86fea7aaf70d9c048 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/test/test.h')
-rw-r--r--src/vppinfra/test/test.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/test/test.h b/src/vppinfra/test/test.h
index 7d54d80c6ec..a0e5f6db669 100644
--- a/src/vppinfra/test/test.h
+++ b/src/vppinfra/test/test.h
@@ -57,6 +57,7 @@ typedef struct
u8 *filter;
u8 *bundle;
f64 ref_clock;
+ void **allocated_mem;
} test_main_t;
extern test_main_t test_main;
@@ -102,6 +103,5 @@ test_perf_event_disable (test_perf_t *t)
void *test_mem_alloc (uword size);
void *test_mem_alloc_and_fill_inc_u8 (uword size, u8 start, u8 mask);
void *test_mem_alloc_and_splat (uword elt_size, uword n_elts, void *elt);
-void test_mem_free (void *p);
#endif