summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-10-05 07:30:29 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-10-05 07:31:39 +0200
commit8352d413ca69767cced91945709d4c0d172879c1 (patch)
tree2d59210734b6855e2157cf84e141cfd8b40ad597 /testsuites
parentbsp/atsam: Use internal SRAM for stack area (diff)
downloadrtems-8352d413ca69767cced91945709d4c0d172879c1.tar.bz2
spthreadlife01: A task exit must not return
Update #3533.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/spthreadlife01/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/sptests/spthreadlife01/init.c b/testsuites/sptests/spthreadlife01/init.c
index d01aff51af..d7231da2ab 100644
--- a/testsuites/sptests/spthreadlife01/init.c
+++ b/testsuites/sptests/spthreadlife01/init.c
@@ -199,7 +199,6 @@ static void delete_extension(
static void terminate_extension(Thread_Control *executing)
{
test_context *ctx = &test_instance;
- rtems_status_code sc;
rtems_test_assert(ctx->worker_task_id == rtems_task_self());
@@ -207,8 +206,8 @@ static void terminate_extension(Thread_Control *executing)
case DELETE_0:
assert_priority(PRIO_INIT);
ctx->current = DELETE_1;
- sc = rtems_task_delete(RTEMS_SELF);
- rtems_test_assert(sc == RTEMS_SUCCESSFUL);
+ rtems_task_delete(RTEMS_SELF);
+ rtems_test_assert(0);
break;
case DELETE_1:
assert_priority(PRIO_INIT);
@@ -306,6 +305,7 @@ static void worker_task(rtems_task_argument arg)
case EXIT_0:
ctx->current = EXIT_1;
rtems_task_exit();
+ rtems_test_assert(0);
break;
default:
rtems_test_assert(0);