[LTP] [PATCH 03/15] renameat2*: Remove kernel >= 3.15 check

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


Since 9e9654cf2 LTP supports kernel >= 4.4.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/kernel/syscalls/renameat2/renameat201.c | 5 -----
 testcases/kernel/syscalls/renameat2/renameat202.c | 5 -----
 2 files changed, 10 deletions(-)

diff --git a/testcases/kernel/syscalls/renameat2/renameat201.c b/testcases/kernel/syscalls/renameat2/renameat201.c
index 9832b1cdb..23ed5758a 100644
--- a/testcases/kernel/syscalls/renameat2/renameat201.c
+++ b/testcases/kernel/syscalls/renameat2/renameat201.c
@@ -100,11 +100,6 @@ int main(int ac, char **av)
 
 static void setup(void)
 {
-	if ((tst_kvercmp(3, 15, 0)) < 0) {
-		tst_brkm(TCONF, NULL,
-			"This test can only run on kernels that are 3.15. and higher");
-	}
-
 	tst_tmpdir();
 
 	fs_type = tst_fs_type(cleanup, ".");
diff --git a/testcases/kernel/syscalls/renameat2/renameat202.c b/testcases/kernel/syscalls/renameat2/renameat202.c
index 0c1457022..88db04762 100644
--- a/testcases/kernel/syscalls/renameat2/renameat202.c
+++ b/testcases/kernel/syscalls/renameat2/renameat202.c
@@ -78,11 +78,6 @@ int main(int ac, char **av)
 
 static void setup(void)
 {
-	if ((tst_kvercmp(3, 15, 0)) < 0) {
-		tst_brkm(TCONF, NULL,
-			"This test can only run on kernels that are 3.15. and higher");
-	}
-
 	tst_tmpdir();
 
 	fs_type = tst_fs_type(cleanup, ".");
-- 
2.43.0



More information about the ltp mailing list