summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-14 11:12:19 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-14 11:58:02 +0200
commitea02782abcaa1de2cdff715443564eaae7d49c51 (patch)
tree25dbc4da423f796c00684889bac40d28d55d34d6 /testsuites
parentbsps: Add CLOCK_DRIVER_USE_ONLY_BOOT_PROCESSOR (diff)
downloadrtems-ea02782abcaa1de2cdff715443564eaae7d49c51.tar.bz2
posix: sched_get_priority_min()
Enable for all configurations since it pulls in no additional dependencies.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/smptests/smpscheduler02/init.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/testsuites/smptests/smpscheduler02/init.c b/testsuites/smptests/smpscheduler02/init.c
index 40a481c0cf..c7fe0537da 100644
--- a/testsuites/smptests/smpscheduler02/init.c
+++ b/testsuites/smptests/smpscheduler02/init.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014 embedded brains GmbH. All rights reserved.
+ * Copyright (c) 2014, 2016 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
* Dornierstr. 4
@@ -16,6 +16,8 @@
#include "config.h"
#endif
+#include <sched.h>
+
#include <rtems.h>
#include <rtems/libcsupport.h>
@@ -40,6 +42,7 @@ static void task(rtems_task_argument arg)
(void) arg;
rtems_test_assert(rtems_get_current_processor() == 1);
+ rtems_test_assert(sched_get_priority_min(SCHED_RR) == 1);
sc = rtems_event_transient_send(main_task_id);
rtems_test_assert(sc == RTEMS_SUCCESSFUL);
@@ -130,6 +133,8 @@ static void test(void)
rtems_test_assert(sc == RTEMS_SUCCESSFUL);
rtems_test_assert(CPU_EQUAL(&cpuset, &first_cpu));
+ rtems_test_assert(sched_get_priority_min(SCHED_RR) == 1);
+
if (cpu_count > 1) {
sc = rtems_task_set_scheduler(task_id, scheduler_b_id);
rtems_test_assert(sc == RTEMS_SUCCESSFUL);