[rtems commit] smptests/smpswitchextension01: Fix start sequence
Sebastian Huber
sebh at rtems.org
Fri Aug 9 21:26:17 UTC 2013
Module: rtems
Branch: master
Commit: 806f84c8eeb4e293445bcd97c0e122eeef094959
Changeset: http://git.rtems.org/rtems/commit/?id=806f84c8eeb4e293445bcd97c0e122eeef094959
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Aug 8 16:34:19 2013 +0200
smptests/smpswitchextension01: Fix start sequence
Start the toggler after the context is initialized.
---
testsuites/smptests/smpswitchextension01/init.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/testsuites/smptests/smpswitchextension01/init.c b/testsuites/smptests/smpswitchextension01/init.c
index a097d70..30d3caa 100644
--- a/testsuites/smptests/smpswitchextension01/init.c
+++ b/testsuites/smptests/smpswitchextension01/init.c
@@ -177,7 +177,9 @@ static void test(void)
&ctx->toggler_ids[toggler_index]
);
rtems_test_assert(sc == RTEMS_SUCCESSFUL);
+ }
+ for (toggler_index = 0; toggler_index < TOGGLER_COUNT; ++toggler_index) {
sc = rtems_task_start(ctx->toggler_ids[toggler_index], toggler, toggler_index);
rtems_test_assert(sc == RTEMS_SUCCESSFUL);
}
More information about the vc
mailing list