[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 01/32] tests/qapi-schema: Improve coverage of '@
From: |
Markus Armbruster |
Subject: |
[Qemu-devel] [RFC PATCH 01/32] tests/qapi-schema: Improve coverage of '@' |
Date: |
Mon, 2 Oct 2017 17:25:21 +0200 |
Demonstrates a qapi2texi.py bug: it can fail to escape '@'.
Signed-off-by: Markus Armbruster <address@hidden>
---
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.json
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}
##
@@ -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
*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=Enum
body=
@@ -136,6 +138,7 @@ Duis aute irure dolor
<- out
section=Examples
- *verbatim*
+- @at sign BUG: gets passed to Texinfo unescaped
- {braces}
section=Since
2.10
diff --git a/tests/qapi-schema/doc-good.texi b/tests/qapi-schema/doc-good.texi
index 1778312581..840a492249 100644
--- a/tests/qapi-schema/doc-good.texi
+++ b/tests/qapi-schema/doc-good.texi
@@ -4,6 +4,7 @@
@strong{strong} @emph{with emphasis}
@code{var} @{in address@hidden
+lone @ BUG: gets passed to Texinfo unescaped
@itemize @bullet
@item
List item one
@@ -69,6 +70,8 @@ Examples:
@item
@strong{verbatim}
@item
address@hidden sign
address@hidden
@address@hidden
@end itemize
@@ -206,6 +209,7 @@ Duis aute irure dolor
@b{Examples:}
@example
- *verbatim*
+- @at sign BUG: gets passed to Texinfo unescaped
- @address@hidden
@end example
--
2.13.6
- [Qemu-devel] [RFC PATCH 00/32] Command line QAPIfication, Markus Armbruster, 2017/10/02
- [Qemu-devel] [RFC PATCH 24/32] qapi-options: Generate help string, Markus Armbruster, 2017/10/02
- [Qemu-devel] [RFC PATCH 18/32] docs/devel/qapi-code-gen.txt: Rewrite section on schema syntax, Markus Armbruster, 2017/10/02
- [Qemu-devel] [RFC PATCH 16/32] qapi: Factor out _make_implicit_wrapper_type(), Markus Armbruster, 2017/10/02
- [Qemu-devel] [RFC PATCH 01/32] tests/qapi-schema: Improve coverage of '@',
Markus Armbruster <=
- [Qemu-devel] [RFC PATCH 04/32] qapi2texi: Fix for '@' not followed by \w character, Markus Armbruster, 2017/10/02
- [Qemu-devel] [RFC PATCH 09/32] qapi: check_type() parameter allow_optional is now unused, drop, Markus Armbruster, 2017/10/02
- [Qemu-devel] [RFC PATCH 13/32] qapi: Use argparse to open schema file, Markus Armbruster, 2017/10/02
- [Qemu-devel] [RFC PATCH 06/32] qapi2texi: Drop | example markup, Markus Armbruster, 2017/10/02
- [Qemu-devel] [RFC PATCH 29/32] qapi/options: QAPIfy --echr argument type, Markus Armbruster, 2017/10/02
- [Qemu-devel] [RFC PATCH 32/32] qapi/options: QAPIfy --add-fd argument type, Markus Armbruster, 2017/10/02