[LTP] [PATCH 1/1] sched_get_priority_max01: Add more policies

Petr Vorel pvorel@suse.cz
Mon Dec 20 21:18:14 CET 2021


Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 .../sched_get_priority_max/sched_get_priority_max01.c    | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/syscalls/sched_get_priority_max/sched_get_priority_max01.c b/testcases/kernel/syscalls/sched_get_priority_max/sched_get_priority_max01.c
index a1c54efd0e..0d01317033 100644
--- a/testcases/kernel/syscalls/sched_get_priority_max/sched_get_priority_max01.c
+++ b/testcases/kernel/syscalls/sched_get_priority_max/sched_get_priority_max01.c
@@ -13,6 +13,8 @@
  * compare them with expected value.
  */
 
+#define _GNU_SOURCE
+
 #include <sched.h>
 #include "lapi/syscalls.h"
 #include "tst_test.h"
@@ -24,9 +26,12 @@ static struct test_case {
 	int policy;
 	int retval;
 } tcases[] = {
-	{POLICY_DESC(SCHED_OTHER), 0},
+	{POLICY_DESC(SCHED_BATCH), 0},
+	{POLICY_DESC(SCHED_DEADLINE), 0},
 	{POLICY_DESC(SCHED_FIFO), 99},
-	{POLICY_DESC(SCHED_RR), 99}
+	{POLICY_DESC(SCHED_IDLE), 0},
+	{POLICY_DESC(SCHED_OTHER), 0},
+	{POLICY_DESC(SCHED_RR), 99},
 };
 
 static void run_test(unsigned int nr)
-- 
2.34.1



More information about the ltp mailing list