linux_dsm_epyc7002/tools/testing/selftests/kvm
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
..
include KVM: selftests: exit with 0 status code when tests cannot be run 2018-05-11 11:21:12 +02:00
lib selftests: kvm: return Kselftest Skip code for skipped tests 2018-05-30 15:29:05 -06:00
.gitignore selftests: kvm: update .gitignore with missing file 2018-05-30 15:21:51 -06:00
Makefile KVM: selftests: exit with 0 status code when tests cannot be run 2018-05-11 11:21:12 +02:00
set_sregs_test.c
sync_regs_test.c KVM: selftests: exit with 0 status code when tests cannot be run 2018-05-11 11:21:12 +02:00
vmx_tsc_adjust_test.c selftests: kvm: return Kselftest Skip code for skipped tests 2018-05-30 15:29:05 -06:00