summaryrefslogtreecommitdiff
path: root/lib/libutils/isoc/bget.h
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2020-12-27 21:17:52 +0100
committerJérôme Forissier <jerome@forissier.org>2021-01-05 15:21:06 +0100
commit27e8d08d664b80a632eac1065d4904f85220bd75 (patch)
tree689bdfe596594feb37e598b209ea68ff81297c5f /lib/libutils/isoc/bget.h
parent313aa2a473173aaf2f5309e3e48e8f6a28abbad5 (diff)
Introduce CFG_TA_BGET_TEST
Introduces CFG_TA_BGET_TEST which compiles the integrated bget test suite together with the rest of bget. When enabled, the test entry point is bget_main_test() in libutils. Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'lib/libutils/isoc/bget.h')
-rw-r--r--lib/libutils/isoc/bget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libutils/isoc/bget.h b/lib/libutils/isoc/bget.h
index 8071639c..68b2e31d 100644
--- a/lib/libutils/isoc/bget.h
+++ b/lib/libutils/isoc/bget.h
@@ -47,3 +47,7 @@ void bstatse _((bufsize *pool_incr, long *npool, long *npget,
void bufdump _((void *buf));
void bpoold _((void *pool, int dumpalloc, int dumpfree));
int bpoolv _((void *pool));
+
+#if !defined(__KERNEL__) && !defined(__LDELF__) && defined(CFG_TA_BGET_TEST)
+int bget_main_test(void *(*malloc_func)(size_t), void (*free_func)(void *));
+#endif