Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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/20220420215721.4868-3-sidhartha.kumar@oracle.com
Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Sidhartha Kumar and committed by
Linus Torvalds
e5508fc5 18d609da

+1 -1
+1 -1
tools/testing/selftests/vm/mremap_test.c
··· 268 268 269 269 if (remap_time < 0) { 270 270 if (test_case.expect_failure) 271 - ksft_test_result_pass("%s\n\tExpected mremap failure\n", 271 + ksft_test_result_xfail("%s\n\tExpected mremap failure\n", 272 272 test_case.name); 273 273 else { 274 274 ksft_test_result_fail("%s\n", test_case.name);