From nobody Mon Apr 29 04:10:10 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.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 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1502716334646928.7441139324952; Mon, 14 Aug 2017 06:12:14 -0700 (PDT) Received: from localhost ([::1]:46012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhFAD-0008Ag-3r for importer@patchew.org; Mon, 14 Aug 2017 09:12:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhBXW-0001cn-0x for qemu-devel@nongnu.org; Mon, 14 Aug 2017 05:20:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhBXR-0005JG-Vd for qemu-devel@nongnu.org; Mon, 14 Aug 2017 05:20:02 -0400 Received: from m97136.mail.qiye.163.com ([220.181.97.136]:30230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhBXQ-0005HC-Oq for qemu-devel@nongnu.org; Mon, 14 Aug 2017 05:19:57 -0400 Received: from localhost.localdomain (unknown [120.132.1.226]) by smtp2 (Coremail) with SMTP id iOCowABXDKrnY5FZIcIPDA--.20S3; Mon, 14 Aug 2017 16:48:40 +0800 (CST) From: wei.yang@ucloud.cn To: mst@redhat.com, imammedo@redhat.com Date: Mon, 14 Aug 2017 16:48:38 +0800 Message-Id: <20170814084838.12233-1-wei.yang@ucloud.cn> X-Mailer: git-send-email 2.11.0 X-CM-TRANSID: iOCowABXDKrnY5FZIcIPDA--.20S3 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjfUv2-eUUUUU X-Originating-IP: [120.132.1.226] X-CM-SenderInfo: xzhlh5xdqjq3pfor3vgofq/1tbiaQg0cVlZstJL+QAAs2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 220.181.97.136 X-Mailman-Approved-At: Mon, 14 Aug 2017 09:10:30 -0400 Subject: [Qemu-devel] [PATCH] bios-tables-test: delete a assert about block name 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: qemu-devel@nongnu.org, wei.yang@ucloud.cn Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Wei Yang The assert would be touched when the version of acpica is greater than or equal to 20160318. its reason is that "Disasembler: Update a couple output items(commit id: 1ecbb3d)" is introduced by Robert, the patch emits the AML filename as a zero-length string, and allows the compiler to create the name later. Signed-off-by: Yang, Wei CC: Michael S. Tsirkin CC: Igor Mammedov CC: qemu-devel@nongnu.org --- tests/bios-tables-test.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c index 88dbf97853..d2ab073848 100644 --- a/tests/bios-tables-test.c +++ b/tests/bios-tables-test.c @@ -350,7 +350,6 @@ static GString *normalize_asl(gchar *asl_code) /* strip def block name (it has file path in it) */ if (g_str_has_prefix(asl->str, DEF_BLOCK)) { block_name =3D g_strstr_len(asl->str, asl->len, BLOCK_NAME_END); - g_assert(block_name); asl =3D g_string_erase(asl, 0, block_name + sizeof(BLOCK_NAME_END) - asl->st= r); } --=20 2.11.0