aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/lib/assert.c
AgeCommit message (Collapse)AuthorFilesLines
2018-10-17kvm: selftests: move arch-specific files to arch-specific locationsGravatar Andrew Jones 1-1/+1
Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-05-30selftests: kvm: return Kselftest Skip code for skipped testsGravatar Shuah Khan (Samsung OSG) 1-2/+7
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-04-04kvm: selftests: add API testing infrastructureGravatar Paolo Bonzini 1-0/+87
Testsuite contributed by Google and cleaned up by myself for inclusion in Linux. Signed-off-by: Ken Hofsass <hofsass@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>