diff mbox series

[kvm-unit-tests,2/4] x86: hyper-v: Use report_skip() in hyperv_stimer when pre-requisites are not met

Message ID 20231025152915.1879661-3-vkuznets@redhat.com (mailing list archive)
State New, archived
Headers show
Series x86: hyper-v: Add support for CONFIG_KVM_HYPERV | expand

Commit Message

Vitaly Kuznetsov Oct. 25, 2023, 3:29 p.m. UTC
'report_pass()' is supposed to be used when tests actually pass, use
'report_skip()' to match other tests.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
---
 x86/hyperv_stimer.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/x86/hyperv_stimer.c b/x86/hyperv_stimer.c
index f7c679160bdf..bcf0fc9d8058 100644
--- a/x86/hyperv_stimer.c
+++ b/x86/hyperv_stimer.c
@@ -353,17 +353,17 @@  int main(int ac, char **av)
 {
 
     if (!synic_supported()) {
-        report_pass("Hyper-V SynIC is not supported");
+        report_skip("Hyper-V SynIC is not supported");
         goto done;
     }
 
     if (!stimer_supported()) {
-        report_pass("Hyper-V SynIC timers are not supported");
+        report_skip("Hyper-V SynIC timers are not supported");
         goto done;
     }
 
     if (!hv_time_ref_counter_supported()) {
-        report_pass("Hyper-V time reference counter is not supported");
+        report_skip("Hyper-V time reference counter is not supported");
         goto done;
     }