From nobody Tue Feb 10 08:27:55 2026 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@gnu.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@gnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1506958087137252.99153039344503; Mon, 2 Oct 2017 08:28:07 -0700 (PDT) Received: from localhost ([::1]:52827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dz2dX-0000r5-9S for importer@patchew.org; Mon, 02 Oct 2017 11:28:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dz2ba-0007xa-Dl for qemu-devel@nongnu.org; Mon, 02 Oct 2017 11:26:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dz2bW-0007rV-4q for qemu-devel@nongnu.org; Mon, 02 Oct 2017 11:26:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38326) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dz2bV-0007r6-UX for qemu-devel@nongnu.org; Mon, 02 Oct 2017 11:25:58 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 00DAE80477; Mon, 2 Oct 2017 15:25:57 +0000 (UTC) Received: from blackfin.pond.sub.org (ovpn-116-91.ams2.redhat.com [10.36.116.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 12CFE907F9; Mon, 2 Oct 2017 15:25:54 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id 84F9B115626B; Mon, 2 Oct 2017 17:25:52 +0200 (CEST) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 00DAE80477 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=armbru@redhat.com From: Markus Armbruster To: qemu-devel@nongnu.org Date: Mon, 2 Oct 2017 17:25:21 +0200 Message-Id: <20171002152552.27999-2-armbru@redhat.com> In-Reply-To: <20171002152552.27999-1-armbru@redhat.com> References: <20171002152552.27999-1-armbru@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 02 Oct 2017 15:25:57 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [RFC PATCH 01/32] tests/qapi-schema: Improve coverage of '@' X-BeenThere: qemu-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marcandre.lureau@redhat.com, mdroth@linux.vnet.ibm.com Errors-To: qemu-devel-bounces+importer=patchew.org@gnu.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" Demonstrates a qapi2texi.py bug: it can fail to escape '@'. Signed-off-by: Markus Armbruster Reviewed-by: Marc-Andr=C3=A9 Lureau --- tests/qapi-schema/doc-good.json | 3 +++ tests/qapi-schema/doc-good.out | 3 +++ tests/qapi-schema/doc-good.texi | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/tests/qapi-schema/doc-good.json b/tests/qapi-schema/doc-good.j= son index 97ab4625ff..44098d7f1a 100644 --- a/tests/qapi-schema/doc-good.json +++ b/tests/qapi-schema/doc-good.json @@ -10,6 +10,7 @@ # # *strong* _with emphasis_ # @var {in braces} +# lone @ BUG: gets passed to Texinfo unescaped # * List item one # - Two, multiple # lines @@ -46,6 +47,7 @@ # <- out # Examples: # - *verbatim* +# - @at sign # - {braces} ## =20 @@ -115,6 +117,7 @@ # <- out # Examples: # - *verbatim* +# - @at sign BUG: gets passed to Texinfo unescaped # - {braces} # Since: 2.10 ## diff --git a/tests/qapi-schema/doc-good.out b/tests/qapi-schema/doc-good.out index 1d2c250527..b732b81119 100644 --- a/tests/qapi-schema/doc-good.out +++ b/tests/qapi-schema/doc-good.out @@ -38,6 +38,7 @@ doc freeform =20 *strong* _with emphasis_ @var {in braces} +lone @ BUG: gets passed to Texinfo unescaped * List item one - Two, multiple lines @@ -74,6 +75,7 @@ Example: <- out Examples: - *verbatim* +- @at sign - {braces} doc symbol=3DEnum body=3D @@ -136,6 +138,7 @@ Duis aute irure dolor <- out section=3DExamples - *verbatim* +- @at sign BUG: gets passed to Texinfo unescaped - {braces} section=3DSince 2.10 diff --git a/tests/qapi-schema/doc-good.texi b/tests/qapi-schema/doc-good.t= exi index 1778312581..840a492249 100644 --- a/tests/qapi-schema/doc-good.texi +++ b/tests/qapi-schema/doc-good.texi @@ -4,6 +4,7 @@ =20 @strong{strong} @emph{with emphasis} @code{var} @{in braces@} +lone @ BUG: gets passed to Texinfo unescaped @itemize @bullet @item List item one @@ -69,6 +70,8 @@ Examples: @item @strong{verbatim} @item +@code{at} sign +@item @{braces@} @end itemize =20 @@ -206,6 +209,7 @@ Duis aute irure dolor @b{Examples:} @example - *verbatim* +- @at sign BUG: gets passed to Texinfo unescaped - @{braces@} @end example =20 --=20 2.13.6