summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp65
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-12 13:11:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-12 13:11:21 +0000
commit160a0e0b97a82af0c95195a39821fd4cdf5b4d07 (patch)
treeb2ff084e7d52fb70ee84d9481f58ee8bda7da7df /testsuites/sptests/sp65
parent2009-08-12 Santosh G Vattam <vattam.santosh@gmail.com> (diff)
downloadrtems-160a0e0b97a82af0c95195a39821fd4cdf5b4d07.tar.bz2
2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp65/init.c: Add semi-colon to end of rtems_semaphore_create call. Change attributes to priority ceiling. Use directive_failed, not assert. Configure a semaphore not a region.
Diffstat (limited to 'testsuites/sptests/sp65')
-rw-r--r--testsuites/sptests/sp65/init.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/testsuites/sptests/sp65/init.c b/testsuites/sptests/sp65/init.c
index e4d53f80d0..fbe7020331 100644
--- a/testsuites/sptests/sp65/init.c
+++ b/testsuites/sptests/sp65/init.c
@@ -10,7 +10,6 @@
*/
#include <tmacros.h>
-#include <rtems/rtems/sem.h>
void* Task_1(
void *argument
@@ -25,14 +24,18 @@ rtems_task Init(
puts( "\n\n*** TEST 65 ***" );
+ /*
+ * Create binary semaphore (a.k.a. Mutex) with Priority Ceiling
+ * attribute.
+ */
status = rtems_semaphore_create(
- rtems_build_name( 's','e','m','1' ),
- 1,
- RTEMS_SIMPLE_BINARY_SEMAPHORE,
- 1,
- &Mutex_id
- )
- assert( !status );
+ rtems_build_name( 's','e','m','1' ),
+ 1,
+ RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY | RTEMS_PRIORITY_CEILING,
+ 1,
+ &Mutex_id
+ );
+ directive_failed( status, "rtems_semaphore_create" );
puts( "*** END OF TEST 65 ***" );
@@ -45,7 +48,7 @@ rtems_task Init(
#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
#define CONFIGURE_MAXIMUM_TASKS 1
-#define CONFIGURE_MAXIMUM_REGIONS 1
+#define CONFIGURE_MAXIMUM_SEMAPHORES 1
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INIT