summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp75
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-08-01 16:15:45 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-08-01 16:15:45 +0000
commit765d72673aa7e03e4af1ae11777917028d28a6ae (patch)
treea6919c53db1a5a3e916864d0d2758733e0bcb0bd /testsuites/sptests/sp75
parent2011-08-01 Xiang Cui <medivhc@gmail.com> (diff)
downloadrtems-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')
-rw-r--r--testsuites/sptests/sp75/init.c12
-rw-r--r--testsuites/sptests/sp75/sp75.doc5
-rw-r--r--testsuites/sptests/sp75/sp75.scn4
3 files changed, 14 insertions, 7 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);
}
diff --git a/testsuites/sptests/sp75/sp75.doc b/testsuites/sptests/sp75/sp75.doc
index bfc62e7bd0..d7a23d46b7 100644
--- a/testsuites/sptests/sp75/sp75.doc
+++ b/testsuites/sptests/sp75/sp75.doc
@@ -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.
diff --git a/testsuites/sptests/sp75/sp75.scn b/testsuites/sptests/sp75/sp75.scn
index a63612096b..17441b4b0e 100644
--- a/testsuites/sptests/sp75/sp75.scn
+++ b/testsuites/sptests/sp75/sp75.scn
@@ -1 +1,3 @@
-XXX fill in with test output
+*** TEST SP75 ***
+rtems_semaphore_obtain - with dispatching disabled
+*** END OF TEST SP75 ***