diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-08-01 16:15:45 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-08-01 16:15:45 +0000 |
commit | 765d72673aa7e03e4af1ae11777917028d28a6ae (patch) | |
tree | a6919c53db1a5a3e916864d0d2758733e0bcb0bd /testsuites/sptests/sp75/init.c | |
parent | 2011-08-01 Xiang Cui <medivhc@gmail.com> (diff) | |
download | rtems-765d72673aa7e03e4af1ae11777917028d28a6ae.tar.bz2 |
2011-08-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp75/init.c, sp75/sp75.doc, sp75/sp75.scn: Correct test and
supporting documentation.
Diffstat (limited to 'testsuites/sptests/sp75/init.c')
-rw-r--r-- | testsuites/sptests/sp75/init.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/testsuites/sptests/sp75/init.c b/testsuites/sptests/sp75/init.c index 0ce2da2f4c..c0d16ea3cd 100644 --- a/testsuites/sptests/sp75/init.c +++ b/testsuites/sptests/sp75/init.c @@ -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); } |