summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp65
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-14 20:05:44 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-14 20:05:44 +0000
commita5b04dabd923fcb3a9d1586d9ff01bdc81de83ba (patch)
tree7fa8a1d9c24a741cf28832d5f5cc005ba2ddc1ca /testsuites/sptests/sp65
parent2009-09-14 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-a5b04dabd923fcb3a9d1586d9ff01bdc81de83ba.tar.bz2
2009-09-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac, sp65/init.c: Add new test to exercise very simple priority ceiling case that was previously only tested via the POSIX API. * sp66/.cvsignore, sp66/Makefile.am, sp66/init.c, sp66/sp66.doc, sp66/sp66.scn: New files.
Diffstat (limited to 'testsuites/sptests/sp65')
-rw-r--r--testsuites/sptests/sp65/init.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/testsuites/sptests/sp65/init.c b/testsuites/sptests/sp65/init.c
index ef81cdac71..e20cd62607 100644
--- a/testsuites/sptests/sp65/init.c
+++ b/testsuites/sptests/sp65/init.c
@@ -11,6 +11,14 @@
#include <tmacros.h>
+#if defined(INHERIT_CEILING)
+ #define TEST_NAME "66"
+ #define TASK_PRIORITY 2
+#else
+ #define TEST_NAME "65"
+ #define TASK_PRIORITY 1
+#endif
+
rtems_task Task_1(
rtems_task_argument arg
);
@@ -22,7 +30,7 @@ rtems_task Init(
int status, ceiling, old_ceiling;
rtems_id Mutex_id, Task_id;
- puts( "\n\n*** TEST 65 ***" );
+ puts( "\n\n*** TEST " TEST_NAME " ***" );
/*
* Create binary semaphore (a.k.a. Mutex) with Priority Ceiling
@@ -45,11 +53,11 @@ rtems_task Init(
puts( "Calling rtems_task_create" );
status = rtems_task_create( rtems_build_name( 'T', 'A', 'S', '1' ),
- 1,
- RTEMS_MINIMUM_STACK_SIZE,
- RTEMS_DEFAULT_MODES,
- RTEMS_DEFAULT_ATTRIBUTES,
- &Task_id
+ TASK_PRIORITY,
+ RTEMS_MINIMUM_STACK_SIZE,
+ RTEMS_DEFAULT_MODES,
+ RTEMS_DEFAULT_ATTRIBUTES,
+ &Task_id
);
directive_failed( status, "rtems_task_create" );
@@ -89,6 +97,7 @@ rtems_task Task_1(
#define CONFIGURE_MAXIMUM_TASKS 2
#define CONFIGURE_MAXIMUM_SEMAPHORES 1
+#define CONFIGURE_INIT_TASK_PRIORITY TASK_PRIORITY
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INIT