diff options
Diffstat (limited to 'testsuites/sptests/sp51/init.c')
-rw-r--r-- | testsuites/sptests/sp51/init.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuites/sptests/sp51/init.c b/testsuites/sptests/sp51/init.c index 48f0146aa3..1e8f9e5ceb 100644 --- a/testsuites/sptests/sp51/init.c +++ b/testsuites/sptests/sp51/init.c @@ -61,6 +61,16 @@ rtems_task Init( TEST_BEGIN(); + puts( "Create semaphore - priority ceiling unlocked - invalid ceiling" ); + sc = rtems_semaphore_create( + rtems_build_name( 'S', 'E', 'M', '1' ), + 0, + RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY_CEILING | RTEMS_PRIORITY, + UINT32_MAX, + &mutex + ); + fatal_directive_status(sc, RTEMS_INVALID_PRIORITY, "rtems_semaphore_create"); + puts( "Create semaphore - priority ceiling locked - violate ceiling" ); sc = rtems_semaphore_create( rtems_build_name( 'S', 'E', 'M', '1' ), |