[rtems commit] spextensions01: Fix extension create order
Sebastian Huber
sebh at rtems.org
Tue Feb 21 11:12:38 UTC 2017
Module: rtems
Branch: master
Commit: c54769e71e1c87c55e482a3d05322e728fb2aac1
Changeset: http://git.rtems.org/rtems/commit/?id=c54769e71e1c87c55e482a3d05322e728fb2aac1
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Feb 21 12:10:43 2017 +0100
spextensions01: Fix extension create order
Update #2692.
---
testsuites/sptests/spextensions01/init.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/testsuites/sptests/spextensions01/init.c b/testsuites/sptests/spextensions01/init.c
index e8d053e..cf02855 100644
--- a/testsuites/sptests/spextensions01/init.c
+++ b/testsuites/sptests/spextensions01/init.c
@@ -422,36 +422,36 @@ static void test(void)
master_task = rtems_task_self();
-#ifdef BSP_INITIAL_EXTENSION
sc = rtems_extension_create(
- rtems_build_name(' ', 'B', 'S', 'P'),
- &initial_bsp,
+ rtems_build_name('2', ' ', ' ', ' '),
+ &two,
&id
);
assert(sc == RTEMS_SUCCESSFUL);
-#undef BSP_INITIAL_EXTENSION
-#endif
sc = rtems_extension_create(
- rtems_build_name('T', 'E', 'S', 'T'),
- &initial_test,
+ rtems_build_name('3', ' ', ' ', ' '),
+ &three,
&id
);
assert(sc == RTEMS_SUCCESSFUL);
sc = rtems_extension_create(
- rtems_build_name('2', ' ', ' ', ' '),
- &two,
+ rtems_build_name('T', 'E', 'S', 'T'),
+ &initial_test,
&id
);
assert(sc == RTEMS_SUCCESSFUL);
+#ifdef BSP_INITIAL_EXTENSION
sc = rtems_extension_create(
- rtems_build_name('3', ' ', ' ', ' '),
- &three,
+ rtems_build_name(' ', 'B', 'S', 'P'),
+ &initial_bsp,
&id
);
assert(sc == RTEMS_SUCCESSFUL);
+#undef BSP_INITIAL_EXTENSION
+#endif
active_extensions = 4;
assert(counter == 14);
More information about the vc
mailing list