From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an7sA-0002tW-RP for qemu-devel@nongnu.org; Mon, 04 Apr 2016 13:01:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1an7s6-0006g8-Qo for qemu-devel@nongnu.org; Mon, 04 Apr 2016 13:01:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an7s6-0006fz-M5 for qemu-devel@nongnu.org; Mon, 04 Apr 2016 13:01:02 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (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 0243D64474 for ; Mon, 4 Apr 2016 17:01:01 +0000 (UTC) From: Marcel Apfelbaum Date: Mon, 4 Apr 2016 20:00:57 +0300 Message-Id: <1459789257-15325-1-git-send-email-marcel@redhat.com> Subject: [Qemu-devel] [PATCH] tests/bios-tables-test: fix assert List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: marcel@redhat.com, dgilbert@redhat.com, mst@redhat.com Newer iasl does not add the aml file name to the Definition Block. See acpica tools commit 1ecbb3d5: "Emit the AMLFilename as a zero-length string. Allows the compiler to create the name later -- making it easier to rename the parent ASL (DSL) file." That causes an assert in acpi tests: tests/bios-tables-test.c:455:normalize_asl: assertion failed: (block_name) Fix it by striping the start of the definition block line until the first comma. The block name is always the first parameter and the grammar does not allow comma in between, so it is safe. Reported-by: Dr. David Alan Gilbert Signed-off-by: Marcel Apfelbaum --- tests/bios-tables-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c index 0a80ddf..0352814 100644 --- a/tests/bios-tables-test.c +++ b/tests/bios-tables-test.c @@ -432,7 +432,7 @@ static bool load_asl(GArray *sdts, AcpiSdtTable *sdt) #define COMMENT_END "*/" #define DEF_BLOCK "DefinitionBlock (" -#define BLOCK_NAME_END ".aml" +#define BLOCK_NAME_END "," static GString *normalize_asl(gchar *asl_code) { -- 2.4.3