[LTP] [PATCH 3/3] Remove old kernel version check when using min_kver under 3.10
Yang Xu
xuyang2018.jy@fujitsu.com
Tue Dec 27 10:20:13 CET 2022
We have raised the minimal kernel version from 3.0 to 3.10,
so remove these useless check.
Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
doc/c-test-api.txt | 2 +-
testcases/kernel/logging/kmsg/kmsg01.c | 1 -
testcases/kernel/syscalls/getxattr/getxattr05.c | 1 -
testcases/kernel/syscalls/ipc/msgrcv/msgrcv03.c | 1 -
testcases/kernel/syscalls/kcmp/kcmp01.c | 1 -
testcases/kernel/syscalls/kcmp/kcmp02.c | 1 -
testcases/kernel/syscalls/kcmp/kcmp03.c | 1 -
testcases/kernel/syscalls/madvise/madvise05.c | 1 -
testcases/kernel/syscalls/madvise/madvise06.c | 1 -
testcases/kernel/syscalls/madvise/madvise08.c | 1 -
testcases/kernel/syscalls/setsockopt/setsockopt02.c | 1 -
11 files changed, 1 insertion(+), 11 deletions(-)
diff --git a/doc/c-test-api.txt b/doc/c-test-api.txt
index e6d121dce..b15321ca2 100644
--- a/doc/c-test-api.txt
+++ b/doc/c-test-api.txt
@@ -559,7 +559,7 @@ static struct tst_test test = {
Testcases for newly added kernel functionality require kernel newer than a
certain version to run. All you need to skip a test on older kernels is to
set the '.min_kver' string in the 'struct tst_test' to a minimal required
-kernel version, e.g. '.min_kver = "2.6.30"'.
+kernel version, e.g. '.min_kver = "4.10.0"'.
For more complicated operations such as skipping a test for a certain range
of kernel versions, following functions could be used:
diff --git a/testcases/kernel/logging/kmsg/kmsg01.c b/testcases/kernel/logging/kmsg/kmsg01.c
index bf2de5741..ba8179d5a 100644
--- a/testcases/kernel/logging/kmsg/kmsg01.c
+++ b/testcases/kernel/logging/kmsg/kmsg01.c
@@ -573,5 +573,4 @@ static struct tst_test test = {
.cleanup = cleanup,
.needs_root = 1,
.test_all = test_kmsg,
- .min_kver = "3.5.0"
};
diff --git a/testcases/kernel/syscalls/getxattr/getxattr05.c b/testcases/kernel/syscalls/getxattr/getxattr05.c
index 28eb4cbcf..8d1752fd0 100644
--- a/testcases/kernel/syscalls/getxattr/getxattr05.c
+++ b/testcases/kernel/syscalls/getxattr/getxattr05.c
@@ -175,7 +175,6 @@ static struct tst_test test = {
.cleanup = cleanup,
.tcnt = ARRAY_SIZE(tcases),
.test = do_getxattr,
- .min_kver = "3.8",
};
#else /* HAVE_SYS_XATTR_H && HAVE_LIBACL*/
diff --git a/testcases/kernel/syscalls/ipc/msgrcv/msgrcv03.c b/testcases/kernel/syscalls/ipc/msgrcv/msgrcv03.c
index ebc583b3e..3e461b307 100644
--- a/testcases/kernel/syscalls/ipc/msgrcv/msgrcv03.c
+++ b/testcases/kernel/syscalls/ipc/msgrcv/msgrcv03.c
@@ -83,7 +83,6 @@ static struct tst_test test = {
"CONFIG_CHECKPOINT_RESTORE",
NULL
},
- .min_kver = "3.8.0",
.tcnt = ARRAY_SIZE(tcases),
.test = verify_msgrcv,
.setup = setup,
diff --git a/testcases/kernel/syscalls/kcmp/kcmp01.c b/testcases/kernel/syscalls/kcmp/kcmp01.c
index 903525ff0..0e7cc7a22 100644
--- a/testcases/kernel/syscalls/kcmp/kcmp01.c
+++ b/testcases/kernel/syscalls/kcmp/kcmp01.c
@@ -103,6 +103,5 @@ static struct tst_test test = {
.cleanup = cleanup,
.forks_child = 1,
.test = verify_kcmp,
- .min_kver = "3.5.0",
.needs_tmpdir = 1,
};
diff --git a/testcases/kernel/syscalls/kcmp/kcmp02.c b/testcases/kernel/syscalls/kcmp/kcmp02.c
index ab07bb866..076b4a723 100644
--- a/testcases/kernel/syscalls/kcmp/kcmp02.c
+++ b/testcases/kernel/syscalls/kcmp/kcmp02.c
@@ -94,6 +94,5 @@ static struct tst_test test = {
.setup = setup,
.cleanup = cleanup,
.test = verify_kcmp,
- .min_kver = "3.5.0",
.needs_tmpdir = 1
};
diff --git a/testcases/kernel/syscalls/kcmp/kcmp03.c b/testcases/kernel/syscalls/kcmp/kcmp03.c
index 4b90e6d87..7af5cb150 100644
--- a/testcases/kernel/syscalls/kcmp/kcmp03.c
+++ b/testcases/kernel/syscalls/kcmp/kcmp03.c
@@ -87,5 +87,4 @@ static struct tst_test test = {
.cleanup = cleanup,
.forks_child = 1,
.test = verify_kcmp,
- .min_kver = "3.5.0"
};
diff --git a/testcases/kernel/syscalls/madvise/madvise05.c b/testcases/kernel/syscalls/madvise/madvise05.c
index 3ab4a8749..9b00a1ff0 100644
--- a/testcases/kernel/syscalls/madvise/madvise05.c
+++ b/testcases/kernel/syscalls/madvise/madvise05.c
@@ -46,7 +46,6 @@ static void verify_madvise(void)
}
static struct tst_test test = {
- .min_kver = "3.9.0",
.test_all = verify_madvise,
.tags = (const struct tst_tag[]) {
{"linux-git", "ee53664bda16"},
diff --git a/testcases/kernel/syscalls/madvise/madvise06.c b/testcases/kernel/syscalls/madvise/madvise06.c
index c1c55bbc2..c7967ae6f 100644
--- a/testcases/kernel/syscalls/madvise/madvise06.c
+++ b/testcases/kernel/syscalls/madvise/madvise06.c
@@ -235,7 +235,6 @@ static void test_advice_willneed(void)
static struct tst_test test = {
.test_all = test_advice_willneed,
.setup = setup,
- .min_kver = "3.10.0",
.needs_tmpdir = 1,
.needs_root = 1,
.save_restore = (const struct tst_path_val[]) {
diff --git a/testcases/kernel/syscalls/madvise/madvise08.c b/testcases/kernel/syscalls/madvise/madvise08.c
index 0996cf91b..96bcaf159 100644
--- a/testcases/kernel/syscalls/madvise/madvise08.c
+++ b/testcases/kernel/syscalls/madvise/madvise08.c
@@ -208,7 +208,6 @@ static struct tst_test test = {
.tcnt = 2,
.setup = setup,
.cleanup = cleanup,
- .min_kver = "3.4.0",
.needs_tmpdir = 1,
.needs_root = 1,
.forks_child = 1,
diff --git a/testcases/kernel/syscalls/setsockopt/setsockopt02.c b/testcases/kernel/syscalls/setsockopt/setsockopt02.c
index f0a2a5ecd..e7621538b 100644
--- a/testcases/kernel/syscalls/setsockopt/setsockopt02.c
+++ b/testcases/kernel/syscalls/setsockopt/setsockopt02.c
@@ -96,5 +96,4 @@ static struct tst_test test = {
.needs_root = 1,
.setup = setup,
.cleanup = cleanup,
- .min_kver = "3.2",
};
--
2.31.1
More information about the ltp
mailing list