[LTP] [PATCH] min_kver: Add kernel version requestions
Zhao Gongyi
zhaogongyi@huawei.com
Tue Mar 30 09:44:37 CEST 2021
We need add kernel version requestions sinc preadv2() and pwritev2()
first appeared in Linux 4.6.
For those:
testcases/kernel/syscalls/preadv2/preadv201.c
testcases/kernel/syscalls/pwritev2/pwritev201.c
Signed-off-by: Zhao Gongyi <zhaogongyi@huawei.com>
---
testcases/kernel/syscalls/preadv2/preadv201.c | 1 +
testcases/kernel/syscalls/pwritev2/pwritev201.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/testcases/kernel/syscalls/preadv2/preadv201.c b/testcases/kernel/syscalls/preadv2/preadv201.c
index 91e2b9889..e8220f94c 100644
--- a/testcases/kernel/syscalls/preadv2/preadv201.c
+++ b/testcases/kernel/syscalls/preadv2/preadv201.c
@@ -111,6 +111,7 @@ static void cleanup(void)
}
static struct tst_test test = {
+ .min_kver = "4.6",
.tcnt = ARRAY_SIZE(tcases),
.setup = setup,
.cleanup = cleanup,
diff --git a/testcases/kernel/syscalls/pwritev2/pwritev201.c b/testcases/kernel/syscalls/pwritev2/pwritev201.c
index eba45b7d3..a8273e59d 100644
--- a/testcases/kernel/syscalls/pwritev2/pwritev201.c
+++ b/testcases/kernel/syscalls/pwritev2/pwritev201.c
@@ -111,6 +111,7 @@ static void cleanup(void)
}
static struct tst_test test = {
+ .min_kver = "4.6",
.tcnt = ARRAY_SIZE(tcases),
.setup = setup,
.cleanup = cleanup,
--
2.17.1
More information about the ltp
mailing list