File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -618,26 +618,31 @@ ZTEST(posix_apis, test_sched_policy)
618
618
static const int policies [] = {
619
619
SCHED_FIFO ,
620
620
SCHED_RR ,
621
+ SCHED_OTHER ,
621
622
SCHED_INVALID ,
622
623
};
623
624
static const char * const policy_names [] = {
624
625
"SCHED_FIFO" ,
625
626
"SCHED_RR" ,
627
+ "SCHED_OTHER" ,
626
628
"SCHED_INVALID" ,
627
629
};
628
630
static const bool policy_enabled [] = {
629
631
IS_ENABLED (CONFIG_COOP_ENABLED ),
630
632
IS_ENABLED (CONFIG_PREEMPT_ENABLED ),
633
+ IS_ENABLED (CONFIG_PREEMPT_ENABLED ),
631
634
false,
632
635
};
633
636
static int nprio [] = {
634
637
CONFIG_NUM_COOP_PRIORITIES ,
635
638
CONFIG_NUM_PREEMPT_PRIORITIES ,
639
+ CONFIG_NUM_PREEMPT_PRIORITIES ,
636
640
42 ,
637
641
};
638
642
const char * const prios [] = {"pmin" , "pmax" };
639
643
640
- BUILD_ASSERT (!(SCHED_INVALID == SCHED_FIFO || SCHED_INVALID == SCHED_RR ),
644
+ BUILD_ASSERT (!(SCHED_INVALID == SCHED_FIFO || SCHED_INVALID == SCHED_RR ||
645
+ SCHED_INVALID == SCHED_OTHER ),
641
646
"SCHED_INVALID is itself invalid" );
642
647
643
648
for (int policy = 0 ; policy < ARRAY_SIZE (policies ); ++ policy ) {
You can’t perform that action at this time.
0 commit comments