forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user