[LTP] [PATCH 04/15] sched_{g, setattr}: Remove kernel >= 3.14 check

Petr Vorel pvorel@suse.cz
Mon May 27 08:33:35 CEST 2024


Since 9e9654cf2 LTP supports kernel >= 4.4.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/kernel/syscalls/sched_getattr/sched_getattr01.c | 3 ---
 testcases/kernel/syscalls/sched_getattr/sched_getattr02.c | 3 ---
 testcases/kernel/syscalls/sched_setattr/sched_setattr01.c | 3 ---
 3 files changed, 9 deletions(-)

diff --git a/testcases/kernel/syscalls/sched_getattr/sched_getattr01.c b/testcases/kernel/syscalls/sched_getattr/sched_getattr01.c
index c1715d8ac..2e06d1809 100644
--- a/testcases/kernel/syscalls/sched_getattr/sched_getattr01.c
+++ b/testcases/kernel/syscalls/sched_getattr/sched_getattr01.c
@@ -96,9 +96,6 @@ int main(int argc, char **argv)
 
 	tst_require_root();
 
-	if ((tst_kvercmp(3, 14, 0)) < 0)
-		tst_brkm(TCONF, NULL, "EDF needs kernel 3.14 or higher");
-
 	for (lc = 0; TEST_LOOPING(lc); lc++) {
 		pthread_create(&thread, NULL, run_deadline, NULL);
 		pthread_join(thread, NULL);
diff --git a/testcases/kernel/syscalls/sched_getattr/sched_getattr02.c b/testcases/kernel/syscalls/sched_getattr/sched_getattr02.c
index 9f4a09f88..5efec2ff5 100644
--- a/testcases/kernel/syscalls/sched_getattr/sched_getattr02.c
+++ b/testcases/kernel/syscalls/sched_getattr/sched_getattr02.c
@@ -101,8 +101,5 @@ void setup(void)
 {
 	unused_pid = tst_get_unused_pid(setup);
 
-	if ((tst_kvercmp(3, 14, 0)) < 0)
-		tst_brkm(TCONF, NULL, "EDF needs kernel 3.14 or higher");
-
 	TEST_PAUSE;
 }
diff --git a/testcases/kernel/syscalls/sched_setattr/sched_setattr01.c b/testcases/kernel/syscalls/sched_setattr/sched_setattr01.c
index d5178e016..13380d177 100644
--- a/testcases/kernel/syscalls/sched_setattr/sched_setattr01.c
+++ b/testcases/kernel/syscalls/sched_setattr/sched_setattr01.c
@@ -130,8 +130,5 @@ void setup(void)
 
 	tst_require_root();
 
-	if ((tst_kvercmp(3, 14, 0)) < 0)
-		tst_brkm(TCONF, NULL, "EDF needs kernel 3.14 or higher");
-
 	TEST_PAUSE;
 }
-- 
2.43.0



More information about the ltp mailing list