[rtems commit] samples/base_mp: Check directive status
Sebastian Huber
sebh at rtems.org
Tue Mar 29 11:42:46 UTC 2016
Module: rtems
Branch: master
Commit: a8ac273c854209ffe30ce6ba9cf9cd873033aa46
Changeset: http://git.rtems.org/rtems/commit/?id=a8ac273c854209ffe30ce6ba9cf9cd873033aa46
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Mar 24 08:40:19 2016 +0100
samples/base_mp: Check directive status
---
testsuites/samples/base_mp/init.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/testsuites/samples/base_mp/init.c b/testsuites/samples/base_mp/init.c
index 38d46b3..901dc83 100644
--- a/testsuites/samples/base_mp/init.c
+++ b/testsuites/samples/base_mp/init.c
@@ -35,10 +35,14 @@ rtems_task Init(
task_name = rtems_build_name( 'T', 'A', '1', ' ' );
status = rtems_task_create( task_name, 1, RTEMS_MINIMUM_STACK_SIZE,
RTEMS_INTERRUPT_LEVEL(0), RTEMS_DEFAULT_ATTRIBUTES, &tid );
+ rtems_test_assert(status == RTEMS_SUCCESSFUL);
+
status = rtems_task_start(
tid,
Application_task,
Multiprocessing_configuration.node
);
- status = rtems_task_delete( RTEMS_SELF );
+ rtems_test_assert(status == RTEMS_SUCCESSFUL);
+
+ rtems_task_delete( RTEMS_SELF );
}
More information about the vc
mailing list