From nobody Mon Nov 10 22:25:49 2025 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=1559586161; cv=none; d=zoho.com; s=zohoarc; b=Kn+4GbpWARcOYMWn4B4XJ4Hlp9C1hxRp8ZM7H2lBp4JRwz4awUPbFonk1wtplg05FVagpYZsp5fMDyy2spDtcUq7ed1d9C44fnVOaGEMTjevGY6fMRux/zwo30VMlxgnB/IfPWfYWKHpfY8ZvUZ3UVgBdT4GzejuQX6DmntAaEw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559586161; 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=oBIKx6HkAdCRfjl+n477VeoQGfWCu5t+iMTiF9V2Cprc8YMGxbIQ9br2UCJgDcFCWsXlSASU/GlpYeGT3dTQU/HwLH7fzzYbSXM/qiRJA7x2ddt4ASkx42W9+IlhNbczL7ZwZtUStSZM95Sr5wrVOPZ3m4ZVcaD6T4j4haruY4c= 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 15595861610231002.2234549478992; Mon, 3 Jun 2019 11:22:41 -0700 (PDT) Received: from localhost ([127.0.0.1]:39148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXrbL-0004bF-2J for importer@patchew.org; Mon, 03 Jun 2019 14:22:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXrOT-0002Ga-Hz for qemu-devel@nongnu.org; Mon, 03 Jun 2019 14:09:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXrOS-0000xU-LJ for qemu-devel@nongnu.org; Mon, 03 Jun 2019 14:09:13 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:39863) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hXrOS-0000wU-Ga for qemu-devel@nongnu.org; Mon, 03 Jun 2019 14:09:12 -0400 Received: by mail-qk1-f194.google.com with SMTP id i125so1038275qkd.6 for ; Mon, 03 Jun 2019 11:09:12 -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 f9sm9690047qkb.97.2019.06.03.11.09.10 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 03 Jun 2019 11:09:10 -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=JHEpkM1NOfcedVcIC4cpoqonJbaaPnQoBUKZQlbYeDPdCk6KvbB9HD8jjSaeV9S1DE MRU8ph91WkggvRzArkT+TQVeDtt5EnhIYmRl6lF9ccxJzEhktIHcLdCYJIX0fjAr238v sGj/2/mlhPYvgPRPnSJE6dYWQco2arP6ooQWtUZFh/k8SspUUY0iIW5ySJ+4KyLsM7wY MXefxHUImyCwnuSecrAZ0JpwmUkl7IjBxgPnJBXVdv1YbQtVSWemM4AHWJfKhDjy/1m6 B2Qo2iMRxyXBo9sch4Tg4d1nsB5MvL6GB4wMW3hcOMfPGkDvVW2zZTwpalXVMIMljk6U g3yA== X-Gm-Message-State: APjAAAXvJRXSJLautZ/pSxQo3Px/F+eSCDr1DSUWxiCgm01225oWyiPg pjGbBL4jCaQVvKXYK3poZmxoCptzNsE= X-Google-Smtp-Source: APXvYqxQGRP8NlD8tUES55AM7xEUL5WLQMWmy7M5SAALZkLzEPKSGcgGg5Ck9Xrak+ZytGa/nhWPnA== X-Received: by 2002:a05:620a:16a6:: with SMTP id s6mr23641419qkj.39.1559585351662; Mon, 03 Jun 2019 11:09:11 -0700 (PDT) Date: Mon, 3 Jun 2019 14:09:09 -0400 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Message-ID: <20190603180807.16140-15-mst@redhat.com> References: <20190603180807.16140-1-mst@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190603180807.16140-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.222.194 Subject: [Qemu-devel] [PULL v2 14/14] 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 , Paolo Bonzini , Igor Mammedov 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