[rtems commit] testsuites: Increase invalid priority values

Sebastian Huber sebh at rtems.org
Tue Jun 28 13:18:27 UTC 2016


Module:    rtems
Branch:    master
Commit:    9f61ad60c038847e919e4fd330b78b532b274c64
Changeset: http://git.rtems.org/rtems/commit/?id=9f61ad60c038847e919e4fd330b78b532b274c64

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Jun 23 13:43:38 2016 +0200

testsuites: Increase invalid priority values

Increase the invalid priority values to support test runs with
alternative schedulers offering a significant higher maximum priority
value, e.g. EDF.

---

 testsuites/psxtests/psx05/init.c        | 2 +-
 testsuites/sptests/sp30/init.c          | 2 +-
 testsuites/sptests/sptask_err04/init.c  | 2 +-
 testsuites/sptests/sptask_err04/task1.c | 6 +++++-
 4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c
index 5f39b2f..cde8733 100644
--- a/testsuites/psxtests/psx05/init.c
+++ b/testsuites/psxtests/psx05/init.c
@@ -726,7 +726,7 @@ void *POSIX_Init(
   rtems_test_assert( status == EINVAL );
 
   puts( "Init: pthread_mutex_setprioceiling - EINVAL (illegal priority)" );
-  status = pthread_mutex_setprioceiling( &Mutex2_id, 512, &old_ceiling );
+  status = pthread_mutex_setprioceiling( &Mutex2_id, INT_MAX, &old_ceiling );
   rtems_test_assert( status == EINVAL );
 
   puts( "Init: pthread_mutex_setprioceiling - EINVAL (NULL ceiling)" );
diff --git a/testsuites/sptests/sp30/init.c b/testsuites/sptests/sp30/init.c
index 21fb3dd..616e4cd 100644
--- a/testsuites/sptests/sp30/init.c
+++ b/testsuites/sptests/sp30/init.c
@@ -46,7 +46,7 @@ rtems_task Init(
   /* initiate with bad priority */
   puts( "timer_initiate_server -- INVALID_PRIORITY" );
   status = rtems_timer_initiate_server(
-    1000,
+    UINT32_C(0x80000000),
     RTEMS_MINIMUM_STACK_SIZE,
     RTEMS_DEFAULT_ATTRIBUTES
   );
diff --git a/testsuites/sptests/sptask_err04/init.c b/testsuites/sptests/sptask_err04/init.c
index b38b54b..c9af611 100644
--- a/testsuites/sptests/sptask_err04/init.c
+++ b/testsuites/sptests/sptask_err04/init.c
@@ -49,7 +49,7 @@ rtems_task Init(
   /* priority > 255 error */
   status = rtems_task_create(
      Task_name[1],
-     257,
+     UINT32_C(0x80000000),
      RTEMS_MINIMUM_STACK_SIZE,
      RTEMS_DEFAULT_MODES,
      RTEMS_DEFAULT_ATTRIBUTES,
diff --git a/testsuites/sptests/sptask_err04/task1.c b/testsuites/sptests/sptask_err04/task1.c
index c84ef82..29b63db 100644
--- a/testsuites/sptests/sptask_err04/task1.c
+++ b/testsuites/sptests/sptask_err04/task1.c
@@ -136,7 +136,11 @@ rtems_task Task_1(
   puts( "TA1 - rtems_task_set_priority - RTEMS_INVALID_ADDRESS" );
 
   /* bad priority */
-  status = rtems_task_set_priority( RTEMS_SELF, 512, &previous_priority );
+  status = rtems_task_set_priority(
+    RTEMS_SELF,
+    UINT32_C(0x80000000),
+    &previous_priority
+  );
   fatal_directive_status(
     status,
     RTEMS_INVALID_PRIORITY,




More information about the vc mailing list