[rtems commit] spthreadlife01: A task exit must not return

Sebastian Huber sebh at rtems.org
Fri Oct 5 05:31:52 UTC 2018


Module:    rtems
Branch:    master
Commit:    8352d413ca69767cced91945709d4c0d172879c1
Changeset: http://git.rtems.org/rtems/commit/?id=8352d413ca69767cced91945709d4c0d172879c1

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Oct  5 07:30:29 2018 +0200

spthreadlife01: A task exit must not return

Update #3533.

---

 testsuites/sptests/spthreadlife01/init.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/testsuites/sptests/spthreadlife01/init.c b/testsuites/sptests/spthreadlife01/init.c
index d01aff5..d7231da 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);




More information about the vc mailing list