[rtems commit] sptests/sp42: Relax priority requirements

Sebastian Huber sebh at rtems.org
Thu Jun 23 08:38:47 UTC 2016


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

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

sptests/sp42: Relax priority requirements

---

 testsuites/sptests/sp42/init.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/testsuites/sptests/sp42/init.c b/testsuites/sptests/sp42/init.c
index 6d96ede..f4be2a5 100644
--- a/testsuites/sptests/sp42/init.c
+++ b/testsuites/sptests/sp42/init.c
@@ -177,12 +177,12 @@ static rtems_task Init(
 
   Master = rtems_task_self();
 
-  if (RTEMS_MAXIMUM_PRIORITY == 255)
+  if (RTEMS_MAXIMUM_PRIORITY >= 255)
     Priorities = Priorities_High;
-  else if (RTEMS_MAXIMUM_PRIORITY == 15)
+  else if (RTEMS_MAXIMUM_PRIORITY >= 15)
     Priorities = Priorities_Low;
   else {
-    puts( "Test only supports 256 or 16 configured priority levels" );
+    puts( "Test needs at least 16 configured priority levels" );
     rtems_test_exit( 0 );
   }
 




More information about the vc mailing list