From 0307c81aa0cad729477e483e9cebd0b52ef67818 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 27 Sep 2022 08:40:39 +0200 Subject: sptls0*: Enable stack checker The thread-local storage area is located close to other stacks. Try to detect overwrites. --- testsuites/sptests/sptls03/init.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'testsuites/sptests/sptls03/init.c') diff --git a/testsuites/sptests/sptls03/init.c b/testsuites/sptests/sptls03/init.c index 6625327f45..119c0cb29c 100644 --- a/testsuites/sptests/sptls03/init.c +++ b/testsuites/sptests/sptls03/init.c @@ -29,6 +29,7 @@ #include "config.h" #endif +#include #include #include "tmacros.h" @@ -55,6 +56,7 @@ static void Init(rtems_task_argument arg) test(); + rtems_test_assert(!rtems_stack_checker_is_blown()); TEST_END(); rtems_test_exit(0); @@ -75,6 +77,8 @@ static void Init(rtems_task_argument arg) */ #define CONFIGURE_DISABLE_NEWLIB_REENTRANCY +#define CONFIGURE_STACK_CHECKER_ENABLED + #define CONFIGURE_MAXIMUM_TASKS 1 #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION -- cgit v1.2.3