summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spstkalloc02
diff options
context:
space:
mode:
authorMatt Joyce <matthew.joyce@embedded-brains.de>2022-05-30 11:05:11 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-21 07:22:13 +0200
commit57a569efe16c2b8e9579147fdd78ee909c7558d3 (patch)
tree987e5ef99e6881afa1ee6f8dd89cbf3df6643c91 /testsuites/sptests/spstkalloc02
parentsptls04: Test an external TLS object (diff)
downloadrtems-57a569efe16c2b8e9579147fdd78ee909c7558d3.tar.bz2
sptests: Disable Newlib reentrancy
Update #4560.
Diffstat (limited to 'testsuites/sptests/spstkalloc02')
-rw-r--r--testsuites/sptests/spstkalloc02/init.c7
-rw-r--r--testsuites/sptests/spstkalloc02/spstkalloc02.doc2
2 files changed, 8 insertions, 1 deletions
diff --git a/testsuites/sptests/spstkalloc02/init.c b/testsuites/sptests/spstkalloc02/init.c
index 5e5db20f0f..3613a6a563 100644
--- a/testsuites/sptests/spstkalloc02/init.c
+++ b/testsuites/sptests/spstkalloc02/init.c
@@ -138,6 +138,13 @@ static rtems_task Init(rtems_task_argument argument)
*/
#define CONFIGURE_APPLICATION_DISABLE_FILESYSTEM
+/*
+ * This test requires full control over the present thread-local objects. This
+ * is necessary for the custom stack allocator below. In certain Newlib
+ * configurations, the Newlib reentrancy support may add thread-local objects.
+ */
+#define CONFIGURE_DISABLE_NEWLIB_REENTRANCY
+
#define CONFIGURE_MAXIMUM_TASKS TASK_COUNT
#define CONFIGURE_TASK_STACK_ALLOCATOR_INIT task_stack_init
diff --git a/testsuites/sptests/spstkalloc02/spstkalloc02.doc b/testsuites/sptests/spstkalloc02/spstkalloc02.doc
index a2dd0357ba..f4c09b4558 100644
--- a/testsuites/sptests/spstkalloc02/spstkalloc02.doc
+++ b/testsuites/sptests/spstkalloc02/spstkalloc02.doc
@@ -26,7 +26,7 @@
This file describes the directives and concepts tested by this test set.
-test set name: spstkalloc01
+test set name: spstkalloc02
The test expects that no thread-local object is present.