diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-11-10 10:23:10 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-11-19 08:39:02 +0100 |
commit | eae22cc03e1003cd53b3b85577cf5081e0d36f43 (patch) | |
tree | 5d278fbf5b53b9401a0c257a1bfa7a53544a1db7 /cpukit/libtest/testrun.c | |
parent | build: Remove duplicate ARM_MMU_USE_SMALL_PAGES (diff) | |
download | rtems-eae22cc03e1003cd53b3b85577cf5081e0d36f43.tar.bz2 |
libtest: Make test case allocator configurable
Diffstat (limited to 'cpukit/libtest/testrun.c')
-rw-r--r-- | cpukit/libtest/testrun.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/libtest/testrun.c b/cpukit/libtest/testrun.c index d11bf63c17..59418e8c7d 100644 --- a/cpukit/libtest/testrun.c +++ b/cpukit/libtest/testrun.c @@ -40,6 +40,8 @@ #include <rtems/test-info.h> #include <rtems/test.h> +#include <stdlib.h> + static char buffer[ 512 ]; static const T_action actions[] = { @@ -65,6 +67,8 @@ static const T_config config = { .putchar = T_putchar_default, .verbosity = T_VERBOSE, .now = T_now_clock, + .allocate = malloc, + .deallocate = free, .action_count = T_ARRAY_SIZE( actions ), .actions = actions }; |