aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSidhartha Kumar <[email protected]>2022-04-21 16:35:55 -0700
committerLinus Torvalds <[email protected]>2022-04-21 20:01:10 -0700
commite5508fc52c76fe42d8bb091fbd7796eeb64b52c4 (patch)
tree058e6acf315b93d91c9d03bc94217034e51cf2e5
parent18d609daa546c919fd36b62a7b510c18de4b4af8 (diff)
selftest/vm: support xfail in mremap_test
Use ksft_test_result_xfail for the tests which are expected to fail. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Sidhartha Kumar <[email protected]> Reviewed-by: Shuah Khan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--tools/testing/selftests/vm/mremap_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/vm/mremap_test.c b/tools/testing/selftests/vm/mremap_test.c
index 58775dab3cc6..db0270127aeb 100644
--- a/tools/testing/selftests/vm/mremap_test.c
+++ b/tools/testing/selftests/vm/mremap_test.c
@@ -268,7 +268,7 @@ static void run_mremap_test_case(struct test test_case, int *failures,
if (remap_time < 0) {
if (test_case.expect_failure)
- ksft_test_result_pass("%s\n\tExpected mremap failure\n",
+ ksft_test_result_xfail("%s\n\tExpected mremap failure\n",
test_case.name);
else {
ksft_test_result_fail("%s\n", test_case.name);