All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: "Lluís Vilanova" <vilanova@ac.upc.edu>, qemu-devel@nongnu.org
Cc: Markus Armbruster <armbru@redhat.com>,
	Luiz Capitulino <lcapitulino@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v3 3/3] qapi: Add tests for the "include" directive
Date: Thu, 27 Feb 2014 14:16:48 -0700	[thread overview]
Message-ID: <530FAB40.8030106@redhat.com> (raw)
In-Reply-To: <20140211130030.12374.67440.stgit@fimbulvetr.bsc.es>

[-- Attachment #1: Type: text/plain, Size: 1295 bytes --]

On 02/11/2014 06:00 AM, Lluís Vilanova wrote:
> Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
> ---

> +++ b/tests/Makefile
> @@ -124,7 +124,8 @@ check-qapi-schema-y := $(addprefix tests/qapi-schema/, \
>          missing-comma-object.json non-objects.json \
>          qapi-schema-test.json quoted-structural-chars.json \
>          trailing-comma-list.json trailing-comma-object.json \
> -        unclosed-list.json unclosed-object.json unclosed-string.json)
> +        unclosed-list.json unclosed-object.json unclosed-string.json\

The other lines have a space before \, but that's cosmetic.  This will
conflict with Wenchao's series to add enum discriminators of unions, but
that should be an obvious conflict resolution for whichever series goes
in second.

> +++ b/tests/qapi-schema/include-cycle.err
> @@ -0,0 +1 @@
> +include-cycle.json:1:1: Inifite inclusion loop: include-cycle.json -> include-cycle.json

Once the typo in 2/3 is fixed, this needs fixing too.

You tested a single-cycle file, but it might also be worth adding a
circular chain (A includes B, B includes C, C includes A) to prove it
also triggers the cycle-detection logic.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

  reply	other threads:[~2014-02-27 21:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-11 13:00 [Qemu-devel] [PATCH v3 0/3] qapi: Allow modularization of QAPI schema files Lluís Vilanova
2014-02-11 13:00 ` [Qemu-devel] [PATCH v3 1/3] qapi: Use an explicit input file Lluís Vilanova
2014-02-11 13:00 ` [Qemu-devel] [PATCH v3 2/3] qapi: Add a primitive to include other files from a QAPI schema file Lluís Vilanova
2014-02-27 21:14   ` Eric Blake
2014-02-11 13:00 ` [Qemu-devel] [PATCH v3 3/3] qapi: Add tests for the "include" directive Lluís Vilanova
2014-02-27 21:16   ` Eric Blake [this message]
2014-02-27 15:31 ` [Qemu-devel] [PATCH v3 0/3] qapi: Allow modularization of QAPI schema files Luiz Capitulino
2014-02-27 21:17   ` Eric Blake
2014-03-01  9:10   ` Markus Armbruster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=530FAB40.8030106@redhat.com \
    --to=eblake@redhat.com \
    --cc=armbru@redhat.com \
    --cc=lcapitulino@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=vilanova@ac.upc.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.