All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Max Reitz <mreitz@redhat.com>, qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2] check-qdict: Test termination of qdict_array_split()
Date: Fri, 21 Feb 2014 13:34:17 -0700	[thread overview]
Message-ID: <5307B849.9030102@redhat.com> (raw)
In-Reply-To: <1393013113-25367-1-git-send-email-mreitz@redhat.com>

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

On 02/21/2014 01:05 PM, Max Reitz wrote:
> qdict_array_split() should terminate if it encounters both an entry with
> a key of "%u" and entries with keys prefixed "%u." for the same index.
> 
> This patch adds a test for this case.
> 
> Signed-off-by: Max Reitz <mreitz@redhat.com>
> ---
> This is a followup to my "Extract non-QDicts in qdict_array_split()" series.
> 

> +    /*
> +     * Test the split of
> +     *
> +     * {
> +     *     "0": 42,
> +     *     "1": 23,
> +     *     "1.x": 84
> +     * }

For good measure, I might have included a "2":..., which also does not
get split out (proving that we didn't just skip over 1 and go on to 2,
but actually stopped).  But at this point, I think you've covered the
code, so I won't insist.

Thanks for the extra test:
Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
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-21 20:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-21 20:05 [Qemu-devel] [PATCH v2] check-qdict: Test termination of qdict_array_split() Max Reitz
2014-02-21 20:34 ` Eric Blake [this message]
2014-02-21 21:18   ` Kevin Wolf

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=5307B849.9030102@redhat.com \
    --to=eblake@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /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.