From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [kvm-unit-tests PATCH v4 02/13] x86/*: report skipped tests Date: Tue, 17 May 2016 14:19:51 +0200 Message-ID: <573B0C67.8010707@redhat.com> References: <1462983171-4208-1-git-send-email-rkrcmar@redhat.com> <1462983171-4208-3-git-send-email-rkrcmar@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Andrew Jones To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:55070 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932535AbcEQMUA (ORCPT ); Tue, 17 May 2016 08:20:00 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 26D1C80083 for ; Tue, 17 May 2016 12:20:00 +0000 (UTC) In-Reply-To: <1462983171-4208-3-git-send-email-rkrcmar@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 11/05/2016 18:12, Radim Kr=C4=8Dm=C3=A1=C5=99 wrote: > =20 > if (!(cpuid_indexed(7, 0).c & (1 << X86_FEATURE_PKU))) { > printf("PKU not enabled, aborting\n"); > - abort(); > + return report_summary(); Needs report_skip? > } > =20 > setup_vm(); > diff --git a/x86/pmu.c b/x86/pmu.c > index 03f80190bb25..c68980044dee 100644 > --- a/x86/pmu.c > +++ b/x86/pmu.c > @@ -387,7 +387,7 @@ int main(int ac, char **av) > =20 > if (!eax.split.version_id) { > printf("No pmu is detected!\n"); > - return 1; > + return report_summary(); Needs report_skip? > } > printf("PMU version: %d\n", eax.split.version_id); > printf("GP counters: %d\n", eax.split.num_counters); > diff --git a/x86/smap.c b/x86/smap.c > index 69e71864dc9b..c9de081a474b 100644 > --- a/x86/smap.c > +++ b/x86/smap.c > @@ -93,7 +93,7 @@ int main(int ac, char **av) > =20 > if (!(cpuid_indexed(7, 0).b & (1 << X86_FEATURE_SMAP))) { > printf("SMAP not enabled, aborting\n"); > - abort(); > + return report_summary(); Needs report_skip? > } > =20 > setup_vm(); > diff --git a/x86/svm.c b/x86/svm.c > index 934b2ae91fa8..301cf8cb2d6b 100644 > --- a/x86/svm.c > +++ b/x86/svm.c > @@ -1064,7 +1064,7 @@ int main(int ac, char **av) > =20 > if (!(cpuid(0x80000001).c & 4)) { > printf("SVM not availble\n"); > - return 0; > + return report_summary(); Needs report_skip? > } > =20 > setup_svm(); > diff --git a/x86/tsc.c b/x86/tsc.c > index 6f89c911c2bc..62450e71725c 100644 > --- a/x86/tsc.c > +++ b/x86/tsc.c > @@ -43,5 +43,5 @@ int main() > test_rdtscp(0x100); > } else > printf("rdtscp not supported\n"); Needs report_skip? > - return 0; > + return report_summary(); Just sending a fixup patch is enough. Paolo