summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpthreadlife01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-10-04 15:23:25 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-10-05 13:41:07 +0200
commit51b3cbca11b940d37b791b4d8009c2144db31ac6 (patch)
tree603dd4aeee593f82d8224195f089ca3024c75f40 /testsuites/smptests/smpthreadlife01
parentscore: Remove CPU_PROVIDES_IDLE_THREAD_BODY (diff)
downloadrtems-51b3cbca11b940d37b791b4d8009c2144db31ac6.tar.bz2
tests: Use rtems_task_exit()
Update #3533.
Diffstat (limited to 'testsuites/smptests/smpthreadlife01')
-rw-r--r--testsuites/smptests/smpthreadlife01/init.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/testsuites/smptests/smpthreadlife01/init.c b/testsuites/smptests/smpthreadlife01/init.c
index 489dd954aa..b47fbe9245 100644
--- a/testsuites/smptests/smpthreadlife01/init.c
+++ b/testsuites/smptests/smpthreadlife01/init.c
@@ -264,15 +264,13 @@ static void test_set_life_protection(rtems_task_argument variant)
static void delay_switch_task(rtems_task_argument arg)
{
test_context *ctx = &test_instance;
- rtems_status_code sc;
ctx->delay_switch_for_executing = _Thread_Get_executing();
/* (D) */
barrier(ctx, &ctx->worker_barrier_state);
- sc = rtems_task_delete(RTEMS_SELF);
- rtems_test_assert(sc == RTEMS_SUCCESSFUL);
+ rtems_task_exit();
}
static void test_wait_for_execution_stop(void)