linux_dsm_epyc7002/tools/testing/selftests/kvm/lib
Shuah Khan (Samsung OSG) ab0e9c4b91 selftests: kvm: return Kselftest Skip code for skipped tests
When kvm test is skipped because of unmet dependencies and/or unsupported
configuration, it exits with error which is treated as a fail by the
Kselftest framework. This leads to false negative result even when the test
could not be run.

Change it to return kselftest skip code when a test gets skipped to clearly
report that the test could not be run.

Change it to use ksft_exit_skip() when the test is skipped. In addition,
refine test_assert() message to include strerror() string and add explicit
check for EACCES to cleary identify when test doesn't run when access is
denied to resources required e.g: open /dev/kvm failed, rc: -1 errno: 13

Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
2018-05-30 15:29:05 -06:00
..
assert.c selftests: kvm: return Kselftest Skip code for skipped tests 2018-05-30 15:29:05 -06:00
elf.c kvm: selftests: add sync_regs_test 2018-04-04 19:11:00 +02:00
io.c kvm: selftests: add sync_regs_test 2018-04-04 19:11:00 +02:00
kvm_util_internal.h
kvm_util.c KVM: selftests: exit with 0 status code when tests cannot be run 2018-05-11 11:21:12 +02:00
sparsebit.c kvm: selftests: fix spelling mistake: "divisable" and "divisible" 2018-04-10 17:20:03 +02:00
vmx.c kvm: selftests: add vmx_tsc_adjust_test 2018-04-16 17:50:23 +02:00
x86.c kvm: selftests: add sync_regs_test 2018-04-04 19:11:00 +02:00