[LTP] [PATCH] syscalls/madvise06: Exclude other factor that leading to failure

Xiao Yang yangx.jy@cn.fujitsu.com
Tue Aug 2 23:23:22 CEST 2016


Make sure that madvise(MADV_WILLNEED) supports swap prefetch. We
can't distinguish between kernel bug and unsupported swap, because
the same error happens on RHEL6.8GA which madvise(MADV_WILLNEED)
doesn't support swap prefetch. This feature has been pushed since
kernel 3.10.0.

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
 testcases/kernel/syscalls/madvise/madvise06.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/kernel/syscalls/madvise/madvise06.c b/testcases/kernel/syscalls/madvise/madvise06.c
index ddd1814..e040b6f 100644
--- a/testcases/kernel/syscalls/madvise/madvise06.c
+++ b/testcases/kernel/syscalls/madvise/madvise06.c
@@ -182,6 +182,7 @@ static struct tst_test test = {
 	.test_all = test_advice_willneed,
 	.setup = setup,
 	.cleanup = cleanup,
+	.min_kver = "3.10.0",
 	.needs_tmpdir = 1,
 	.needs_root = 1,
 };
-- 
1.8.3.1





More information about the ltp mailing list