summaryrefslogtreecommitdiffstats
path: root/c/src/tests/psxtests/psxhdrs/sched03.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/tests/psxtests/psxhdrs/sched03.c')
-rw-r--r--c/src/tests/psxtests/psxhdrs/sched03.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/c/src/tests/psxtests/psxhdrs/sched03.c b/c/src/tests/psxtests/psxhdrs/sched03.c
index d2fcdc9cf7..b140a0052d 100644
--- a/c/src/tests/psxtests/psxhdrs/sched03.c
+++ b/c/src/tests/psxtests/psxhdrs/sched03.c
@@ -31,8 +31,22 @@ void test( void )
policy = SCHED_RR;
policy = SCHED_FIFO;
policy = SCHED_OTHER;
+#ifdef _POSIX_SPORADIC_SERVER
+ policy = SCHED_SPORADIC;
+#endif
+
+ /*
+ * really should use sched_get_priority_min() and sched_get_priority_max()
+ */
param.sched_priority = 0;
+#ifdef _POSIX_SPORADIC_SERVER
+ param.ss_low_priority = 0;
+ param.ss_replenish_period.tv_sec = 0;
+ param.ss_replenish_period.tv_nsec = 0;
+ param.ss_initial_budget.tv_sec = 0;
+ param.ss_initial_budget.tv_nsec = 0;
+#endif
result = sched_setscheduler( pid, policy, &param );
}