From nobody Mon Feb 9 10:58:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1559765526; cv=none; d=zoho.com; s=zohoarc; b=gfmod2nDWStBIfikO5b0T8F3TiBx3ZPao3ZFt+7jN2HEDChR5RkPWtKcdLipsxfLPMix2Ufw9Rhw7g37H1gorBCWRCynkwW3zesILUxE9+SQruoEv2LML0roOYZkk3PLRhiPHS1lA0XMJto6LSZH6lYBXrnbx3ivhuxK+ivmKeo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559765526; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=rmZ1LeFhTShzPpR471gaFIMsLeMRdMAxMgQBdzVGjC4=; b=Qhp8Kx5vs4RxubjiM7DjTj79AObwn/kpRfmr6tUNk6GNpuYgW1q7h8AV5TE08xSwLZnvR9ZljFA+iMGOu379nj/Fhrn0A/ayB7Wp9YsEGC7u4xnFjG7rEE3mCOwgRPbqvsVBTT7+bw273qQihqZR4aD4DEpJOYQHW+Lc+c8aT/s= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1559765526387741.7488437124152; Wed, 5 Jun 2019 13:12:06 -0700 (PDT) Received: from localhost ([127.0.0.1]:49224 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYcGN-0003Tn-3q for importer@patchew.org; Wed, 05 Jun 2019 16:11:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYc5h-0003KB-Nu for qemu-devel@nongnu.org; Wed, 05 Jun 2019 16:00:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYc5g-00065K-FS for qemu-devel@nongnu.org; Wed, 05 Jun 2019 16:00:57 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:41691) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hYc5c-0005sQ-KF for qemu-devel@nongnu.org; Wed, 05 Jun 2019 16:00:56 -0400 Received: by mail-qt1-f193.google.com with SMTP id s57so12383578qte.8 for ; Wed, 05 Jun 2019 13:00:46 -0700 (PDT) Received: from redhat.com (pool-100-0-197-103.bstnma.fios.verizon.net. [100.0.197.103]) by smtp.gmail.com with ESMTPSA id n10sm10512259qke.72.2019.06.05.13.00.45 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 05 Jun 2019 13:00:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=rmZ1LeFhTShzPpR471gaFIMsLeMRdMAxMgQBdzVGjC4=; b=aeuqT5k1bBGkAbaupgqLrKypfEuPtEANQzYSzR5Ue5htli5j6HRw+v6LLyvpM+4EQM +rQ/tk+oV9Z9u4Cb+VqJP+eWBGmKOa/KJGXUontKiWUsH5MHzkvofNoIpUr0aU5mrM/2 oQah6HRv0F09xu8oVPQ/zzg6NKNrEB21DLXpVykXrIhxMdBEB71BYUvWV1HTKS+5a3NE 49z9r7Isnd1iXgcdhnQ0yiuk2vpxvbRf4hLavSBBg3I6mMVZ/WFNnO5QX6/RdkRu3wW2 SlDIiojrhkYqum77qgv7pcQWGb6GPlnD3ZCC3f9HehM2XCFub/utv7opnReWQt3R/DNR xD0g== X-Gm-Message-State: APjAAAVL2dJMVGYfgBWek5roU5oC0cxlRv4xQCyAGP5VG3sZcmQYaZce 3JpDW1318CDqMjIzFHjHVEkroMRSzfE= X-Google-Smtp-Source: APXvYqz+9ExSohRBgF9zCrohssidUZsuvIasDTjMVQl1v20UGskdpnm/lZQdTA3hNAfHGQKGlDR8xA== X-Received: by 2002:a0c:96c4:: with SMTP id b4mr33545841qvd.2.1559764846136; Wed, 05 Jun 2019 13:00:46 -0700 (PDT) Date: Wed, 5 Jun 2019 16:00:44 -0400 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Message-ID: <20190605195913.12243-15-mst@redhat.com> References: <20190605195913.12243-1-mst@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190605195913.12243-1-mst@redhat.com> X-Mailer: git-send-email 2.17.1.1206.gb667731e2e.dirty X-Mutt-Fcc: =sent X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.160.193 Subject: [Qemu-devel] [PULL v3 14/17] bios-tables-test: list all tables that differ X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Peter Maydell , Thomas Huth , Igor Mammedov , Paolo Bonzini Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fail after comparing all tables: this way user gets the full list of tables that need to be updated or whitelisted. Signed-off-by: Michael S. Tsirkin --- tests/bios-tables-test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c index 28d7d427e0..70895e1014 100644 --- a/tests/bios-tables-test.c +++ b/tests/bios-tables-test.c @@ -364,7 +364,7 @@ static void test_acpi_asl(test_data *data) int i; AcpiSdtTable *sdt, *exp_sdt; test_data exp_data; - gboolean exp_err, err; + gboolean exp_err, err, all_tables_match =3D true; =20 memset(&exp_data, 0, sizeof(exp_data)); exp_data.tables =3D load_expected_aml(data); @@ -413,11 +413,13 @@ static void test_acpi_asl(test_data *data) } } } - g_assert(test_acpi_find_diff_allowed(exp_sdt)); + all_tables_match =3D all_tables_match && + test_acpi_find_diff_allowed(exp_sdt); } g_string_free(asl, true); g_string_free(exp_asl, true); } + g_assert(all_tables_match); =20 free_test_data(&exp_data); } --=20 MST