mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 19:15:44 +08:00
2011-08-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp75/init.c, sp75/sp75.doc, sp75/sp75.scn: Correct test and supporting documentation.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2011-08-01 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* sp75/init.c, sp75/sp75.doc, sp75/sp75.scn: Correct test and
|
||||
supporting documentation.
|
||||
|
||||
2011-07-28 Pawel Zagorski <pzagor@agh.edu.pl>
|
||||
|
||||
PR 1857/tests
|
||||
|
||||
@@ -31,13 +31,17 @@ rtems_task Init(
|
||||
);
|
||||
directive_failed(sc, "rtems_semaphore_create");
|
||||
|
||||
/*
|
||||
* Call semaphore obtain with dispatching disabled. Reenable
|
||||
* dispatching before checking the status returned since
|
||||
* directive_failed() checks for dispatching being enabled.
|
||||
*/
|
||||
puts( "rtems_semaphore_obtain - with dispatching disabled" );
|
||||
_Thread_Disable_dispatch();
|
||||
|
||||
sc = rtems_semaphore_obtain(mutex, RTEMS_NO_WAIT, RTEMS_NO_TIMEOUT);
|
||||
sc = rtems_semaphore_obtain(mutex, RTEMS_NO_WAIT, RTEMS_NO_TIMEOUT);
|
||||
_Thread_Enable_dispatch();
|
||||
directive_failed(sc, "rtems_semaphore_obtain");
|
||||
|
||||
_Thread_Enable_dispatch();
|
||||
|
||||
puts( "*** END OF TEST SP75 ***" );
|
||||
rtems_test_exit(0);
|
||||
}
|
||||
|
||||
@@ -15,8 +15,9 @@ test set name: sp75
|
||||
|
||||
directives:
|
||||
|
||||
XXX list them
|
||||
rtems_semaphore_obtain
|
||||
|
||||
concepts:
|
||||
|
||||
+ XXX list them
|
||||
+ obtain semaphore in no wait mode with dispatching disabled. This is
|
||||
logically the same as performing the same operation from an ISR.
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
XXX fill in with test output
|
||||
*** TEST SP75 ***
|
||||
rtems_semaphore_obtain - with dispatching disabled
|
||||
*** END OF TEST SP75 ***
|
||||
|
||||
Reference in New Issue
Block a user