summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-10 10:23:10 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-19 08:39:02 +0100
commiteae22cc03e1003cd53b3b85577cf5081e0d36f43 (patch)
tree5d278fbf5b53b9401a0c257a1bfa7a53544a1db7 /testsuites/libtests
parentbuild: Remove duplicate ARM_MMU_USE_SMALL_PAGES (diff)
downloadrtems-eae22cc03e1003cd53b3b85577cf5081e0d36f43.tar.bz2
libtest: Make test case allocator configurable
Diffstat (limited to 'testsuites/libtests')
-rw-r--r--testsuites/libtests/ttest01/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuites/libtests/ttest01/init.c b/testsuites/libtests/ttest01/init.c
index c0ccee9aa4..f5405208a0 100644
--- a/testsuites/libtests/ttest01/init.c
+++ b/testsuites/libtests/ttest01/init.c
@@ -28,6 +28,7 @@
#include <rtems/test.h>
#include <sys/time.h>
+#include <stdlib.h>
#include <string.h>
#include <rtems.h>
@@ -255,6 +256,8 @@ static const T_config config = {
.putchar_arg = &test_instance,
.verbosity = T_VERBOSE,
.now = now,
+ .allocate = malloc,
+ .deallocate = free,
.action_count = T_ARRAY_SIZE(actions),
.actions = actions
};