From c82835a231351377866ceb82826010ba0485255d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 21 Jun 2016 17:12:40 +0200 Subject: rtems: Rework RTEMS API to SuperCore priority Use same structure as POSIX API for thread priority conversion to/from SuperCore. --- testsuites/sptests/sp51/init.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'testsuites/sptests/sp51/init.c') 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' ), -- cgit v1.2.3