diff options
Diffstat (limited to 'testsuites/sptests/spfatal03/testcase.h')
-rw-r--r-- | testsuites/sptests/spfatal03/testcase.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/testsuites/sptests/spfatal03/testcase.h b/testsuites/sptests/spfatal03/testcase.h index b9f1c22ae0..86b300344e 100644 --- a/testsuites/sptests/spfatal03/testcase.h +++ b/testsuites/sptests/spfatal03/testcase.h @@ -36,12 +36,10 @@ void force_error(void) printk("Create semaphore S0\n"); printk("Obtain semaphore in dispatching critical section\n"); - _Thread_Disable_dispatch(); + _Thread_Dispatch_disable(); status = rtems_semaphore_obtain( mutex, RTEMS_DEFAULT_OPTIONS, 0 ); /* !!! SHOULD NOT RETURN FROM THE ABOVE CALL */ - _Thread_Enable_dispatch(); - printk("ERROR -- Obtain semaphore should not have returned\n"); - + rtems_test_assert( 0 ); /* we will not run this far */ } |