summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spsysinit01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-26 11:06:50 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-26 11:20:45 +0100
commit6f6da82ca0b57ed1c42050f8103c2ea2adb3d3e2 (patch)
tree0a2384e1eed6247010b5d890d078212227956a2a /testsuites/sptests/spsysinit01
parentsapi: Add rtems_task_terminate_extension (diff)
downloadrtems-6f6da82ca0b57ed1c42050f8103c2ea2adb3d3e2.tar.bz2
score: Fix user extensions order
Use forward and reverse order for initial and dynamic extensions. This is the behaviour documented in the C Users Guide. Change thread terminate order to backward to be in line with the thread delete order. Change fatal error order to forward to ensure that initial extensions are called first due the peculiar execution context of fatal error extensions, see _Terminate() documentation. Update #2692.
Diffstat (limited to 'testsuites/sptests/spsysinit01')
-rw-r--r--testsuites/sptests/spsysinit01/init.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/sptests/spsysinit01/init.c b/testsuites/sptests/spsysinit01/init.c
index 15072c3d20..612ba145a2 100644
--- a/testsuites/sptests/spsysinit01/init.c
+++ b/testsuites/sptests/spsysinit01/init.c
@@ -120,11 +120,13 @@ typedef enum {
POSIX_RWLOCK_POST,
POSIX_SHM_PRE,
POSIX_SHM_POST,
- POSIX_CLEANUP_PRE,
- POSIX_CLEANUP_POST,
#endif /* RTEMS_POSIX_API */
POSIX_KEYS_PRE,
POSIX_KEYS_POST,
+#ifdef RTEMS_POSIX_API
+ POSIX_CLEANUP_PRE,
+ POSIX_CLEANUP_POST,
+#endif /* RTEMS_POSIX_API */
IDLE_THREADS_PRE,
IDLE_THREADS_POST,
LIBIO_PRE,