diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-01-27 14:16:55 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-01-28 08:03:48 +0100 |
commit | b519e509a953c25894700531c321f7213fa11e70 (patch) | |
tree | 712369b8915c7d8a0b1a8482f942b31155357afb /testsuites/sptests/sp01 | |
parent | cpukit: Prevent error with disabled stack checker (diff) | |
download | rtems-b519e509a953c25894700531c321f7213fa11e70.tar.bz2 |
sptests: Avoid a dependency on errno
Avoid a dependency on errno which might be a thread-local object. The tests
sp01, spstkalloc02, and sptls03 assume that no thread-local storage object is
present.
Update #4560.
Diffstat (limited to 'testsuites/sptests/sp01')
-rw-r--r-- | testsuites/sptests/sp01/init.c | 2 | ||||
-rw-r--r-- | testsuites/sptests/sp01/sp01.doc | 2 | ||||
-rw-r--r-- | testsuites/sptests/sp01/system.h | 7 |
3 files changed, 10 insertions, 1 deletions
diff --git a/testsuites/sptests/sp01/init.c b/testsuites/sptests/sp01/init.c index e0072a615c..a630184651 100644 --- a/testsuites/sptests/sp01/init.c +++ b/testsuites/sptests/sp01/init.c @@ -25,6 +25,8 @@ static const rtems_task_config Task_1_config = { .initial_priority = 1, .storage_area = Task_1_storage, .storage_size = sizeof( Task_1_storage ), + .maximum_thread_local_storage_size = 0, + .storage_free = NULL, .initial_modes = RTEMS_DEFAULT_MODES, .attributes = RTEMS_FLOATING_POINT }; diff --git a/testsuites/sptests/sp01/sp01.doc b/testsuites/sptests/sp01/sp01.doc index 43c8ee0116..46109a74e8 100644 --- a/testsuites/sptests/sp01/sp01.doc +++ b/testsuites/sptests/sp01/sp01.doc @@ -8,6 +8,8 @@ test name: sp01 +The test expects that no thread-local object is present. + directives: rtems_task_construct rtems_task_create diff --git a/testsuites/sptests/sp01/system.h b/testsuites/sptests/sp01/system.h index d7990aeca8..82354b801e 100644 --- a/testsuites/sptests/sp01/system.h +++ b/testsuites/sptests/sp01/system.h @@ -21,9 +21,14 @@ rtems_task Task_1_through_3( /* configuration information */ -#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER +/* + * Avoid a dependency on errno which might be a thread-local object. This test + * assumes that no thread-local storage object is present. + */ +#define CONFIGURE_APPLICATION_DISABLE_FILESYSTEM + #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |