diff options
Diffstat (limited to 'testsuites/sptests/spsem02')
-rw-r--r-- | testsuites/sptests/spsem02/init.c | 6 | ||||
-rw-r--r-- | testsuites/sptests/spsem02/spsem02.scn | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/testsuites/sptests/spsem02/init.c b/testsuites/sptests/spsem02/init.c index c88e9adffb..d5fb47b255 100644 --- a/testsuites/sptests/spsem02/init.c +++ b/testsuites/sptests/spsem02/init.c @@ -168,9 +168,9 @@ rtems_task Task02(rtems_task_argument ignored) directive_failed( status, " rtems_semaphore_obtain S1"); printf("TA02: priority %d, holding S1\n", getprio()); - printf("TA02: exiting\n"); - status = rtems_task_delete( RTEMS_SELF); - directive_failed( status, "rtems_task_delete TA02"); + printf("TA02: suspending\n"); + status = rtems_task_suspend( RTEMS_SELF); + directive_failed( status, "rtems_task_suspend TA02"); } /* Task03 starts with priority 32 */ diff --git a/testsuites/sptests/spsem02/spsem02.scn b/testsuites/sptests/spsem02/spsem02.scn index 5b8d03d8ea..ab8c7ce139 100644 --- a/testsuites/sptests/spsem02/spsem02.scn +++ b/testsuites/sptests/spsem02/spsem02.scn @@ -1,4 +1,4 @@ -*** TEST SEM02 *** +*** BEGIN OF TEST SPSEM 2 *** init: S0 created init: S1 created init: TA01 created with priority 36 @@ -15,8 +15,7 @@ TA03: priority 32, holding S0 TA03: priority 32 TA03: exiting TA02: priority 34, holding S1 -TA02: exiting +TA02: suspending TA01: priority 36 TA01: exiting -*** END OF SEM02 *** - +*** END OF TEST SPSEM 2 *** |