diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-17 15:43:31 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-20 07:49:41 +0200 |
commit | dab902d5b2688fe958118299f7d44d1adbf13878 (patch) | |
tree | fa54fcf607d93dd03017f9d0eb1f82ca0f55aca4 /testsuites/sptests/spfatal03 | |
parent | score: Avoid Giant _Objects_Extend_information() (diff) | |
download | rtems-dab902d5b2688fe958118299f7d44d1adbf13878.tar.bz2 |
testsuites: Avoid Giant lock
Replace _Thread_Disable_dispatch() with _Thread_Dispatch_disable().
Replace _Thread_Enable_dispatch() with _Thread_Dispatch_enable().
This is a preparation to remove the Giant lock.
Update #2555.
Diffstat (limited to 'testsuites/sptests/spfatal03')
-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 */ } |