From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Subject: [PATCH v3 5/9] lib/report: don't print 0 failed tests Date: Fri, 15 Apr 2016 22:52:47 +0200 Message-ID: <1460753571-20732-6-git-send-email-rkrcmar@redhat.com> References: <1460753571-20732-1-git-send-email-rkrcmar@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Paolo Bonzini , Andrew Jones To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:50097 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751482AbcDOUxP (ORCPT ); Fri, 15 Apr 2016 16:53:15 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (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 799D4C04B31A for ; Fri, 15 Apr 2016 20:53:15 +0000 (UTC) In-Reply-To: <1460753571-20732-1-git-send-email-rkrcmar@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Radim Kr=C4=8Dm=C3=A1=C5=99 --- lib/report.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/report.c b/lib/report.c index 430b2aeaecbd..4cd75534f978 100644 --- a/lib/report.c +++ b/lib/report.c @@ -95,7 +95,9 @@ int report_summary(void) { spin_lock(&lock); =20 - printf("\nSUMMARY: %d tests, %d unexpected failures", tests, failures= ); + printf("\nSUMMARY: %d tests", tests); + if (failures) + printf(", %d unexpected failures", failures); if (xfailures) printf(", %d expected failures", xfailures); if (skipped) --=20 2.8.1