summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-14 20:07:32 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-14 20:07:32 +0000
commit0f4de1e33b53ef7a5c20f3177585200551fbe741 (patch)
treee0c589edbdb52cc461daae7a6ec1f1977c6dece7 /testsuites
parent2009-09-14 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-0f4de1e33b53ef7a5c20f3177585200551fbe741.tar.bz2
2009-09-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp43/init.c, sp43/sp43.scn: Minor correction to test case so it hits the intended code.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/ChangeLog5
-rw-r--r--testsuites/sptests/sp43/init.c8
-rw-r--r--testsuites/sptests/sp43/sp43.scn2
3 files changed, 11 insertions, 4 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog
index d71e377f36..d9aa24adc7 100644
--- a/testsuites/sptests/ChangeLog
+++ b/testsuites/sptests/ChangeLog
@@ -1,5 +1,10 @@
2009-09-14 Joel Sherrill <joel.sherrill@OARcorp.com>
+ * sp43/init.c, sp43/sp43.scn: Minor correction to test case so it hits
+ the intended code.
+
+2009-09-14 Joel Sherrill <joel.sherrill@OARcorp.com>
+
* configure.ac: Revert accidentally committed lines.
2009-09-14 Joel Sherrill <joel.sherrill@OARcorp.com>
diff --git a/testsuites/sptests/sp43/init.c b/testsuites/sptests/sp43/init.c
index b91b6f6de6..19c6c896b4 100644
--- a/testsuites/sptests/sp43/init.c
+++ b/testsuites/sptests/sp43/init.c
@@ -449,14 +449,16 @@ rtems_task Init(
* needs this. This is a "good" Id in that is it in range, but bad in
* that it has not been allocated so the local_table pointer is NULL.
*/
- puts( "rtems_semaphore_release - good but uncreated ID - INVALID_ID - OK" );
- sc = rtems_semaphore_release(
+ puts( "rtems_semaphore_obtain - good but uncreated ID - INVALID_ID - OK" );
+ sc = rtems_semaphore_obtain(
rtems_build_id(
OBJECTS_CLASSIC_API,
OBJECTS_RTEMS_SEMAPHORES,
1,
rtems_configuration_get_maximum_semaphores()
- )
+ ),
+ RTEMS_DEFAULT_OPTIONS,
+ 0
);
fatal_directive_status( sc, RTEMS_INVALID_ID, "rtems_semaphore_obtain" );
diff --git a/testsuites/sptests/sp43/sp43.scn b/testsuites/sptests/sp43/sp43.scn
index dd1bf9d493..fd75b07dba 100644
--- a/testsuites/sptests/sp43/sp43.scn
+++ b/testsuites/sptests/sp43/sp43.scn
@@ -87,5 +87,5 @@ rtems_task_set_priority - use valid Idle thread id
rtems_task_set_priority - clobber internal thread class info
rtems_task_set_priority - use valid Idle thread id again
rtems_task_set_priority - restore internal thread class info
-rtems_semaphore_release - good but uncreated ID - INVALID_ID - OK
+rtems_semaphore_obtain - good but uncreated ID - INVALID_ID - OK
*** END OF TEST 43 ***