summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sptask_err01
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/sptask_err01')
-rw-r--r--testsuites/sptests/sptask_err01/sptask_err01.scn2
-rw-r--r--testsuites/sptests/sptask_err01/task2.c7
2 files changed, 3 insertions, 6 deletions
diff --git a/testsuites/sptests/sptask_err01/sptask_err01.scn b/testsuites/sptests/sptask_err01/sptask_err01.scn
index eccf90fce7..f1bebd75e0 100644
--- a/testsuites/sptests/sptask_err01/sptask_err01.scn
+++ b/testsuites/sptests/sptask_err01/sptask_err01.scn
@@ -2,6 +2,6 @@
TA1 - rtems_task_create - TA2 created - RTEMS_SUCCESSFUL
TA1 - rtems_task_start - start TA2 - RTEMS_SUCCESSFUL
TA1 - rtems_task_wake_after - yield processor - RTEMS_SUCCESSFUL
-TA2 - rtems_task_delete - delete self - RTEMS_SUCCESSFUL
+TA2 - rtems_task_exit
TA1 - rtems_task_delete TA2 - already deleted RTEMS_INVALID_ID
*** END TEST TASK ERROR 01 ***
diff --git a/testsuites/sptests/sptask_err01/task2.c b/testsuites/sptests/sptask_err01/task2.c
index d5c8724f39..5294f35720 100644
--- a/testsuites/sptests/sptask_err01/task2.c
+++ b/testsuites/sptests/sptask_err01/task2.c
@@ -26,9 +26,6 @@ rtems_task Task_2(
rtems_task_argument argument
)
{
- rtems_status_code status;
-
- puts( "TA2 - rtems_task_delete - delete self - RTEMS_SUCCESSFUL" );
- status = rtems_task_delete( RTEMS_SELF );
- directive_failed( status, "rtems_task_delete of TA2" );
+ puts( "TA2 - rtems_task_exit" );
+ rtems_task_exit();
}