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:
Joel Sherrill
2011-08-01 16:15:45 +00:00
parent 7336d4af62
commit 765d72673a
4 changed files with 19 additions and 7 deletions
+5
View File
@@ -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
+8 -4
View File
@@ -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);
}
+3 -2
View File
@@ -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.
+3 -1
View File
@@ -1 +1,3 @@
XXX fill in with test output
*** TEST SP75 ***
rtems_semaphore_obtain - with dispatching disabled
*** END OF TEST SP75 ***