From: Eric Blake <eblake@redhat.com>
To: Max Reitz <mreitz@redhat.com>, qemu-block@nongnu.org
Cc: qemu-devel@nongnu.org, Markus Armbruster <armbru@redhat.com>,
Kevin Wolf <kwolf@redhat.com>
Subject: Re: [Qemu-devel] [PATCH for-2.11? v7 6/6] tests: Add check-qobject for equality tests
Date: Tue, 14 Nov 2017 13:35:37 -0600 [thread overview]
Message-ID: <0e5f02a3-6482-a49d-5e3c-cc51868056dc@redhat.com> (raw)
In-Reply-To: <20171114180128.17076-7-mreitz@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 992 bytes --]
On 11/14/2017 12:01 PM, Max Reitz wrote:
> Add a new test file (check-qobject.c) for unit tests that concern
> QObjects as a whole.
>
> Its only purpose for now is to test the qobject_is_equal() function.
>
> + * Note that qobject_is_equal() is not really an equivalence relation,
> + * so this function may not be used for all objects (reflexivity is
> + * not guaranteed, e.g. in the case of a QNum containing NaN).
> + *
> + * The @_ argument is required because a boolean may not be the last
> + * argument before a variadic argument list (C11 7.16.1.4 para. 4).
C99 7.15.1.4 (did C11 add a section? /me goes and looks... Oh, it did.)
Okay, so it's not a typo after all. Ignore my comment in the cover
letter, and
Reviewed-by: Eric Blake <eblake@redhat.com>
(And soon, I'll have to start quoting C17 instead of C99 or C11...)
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]
next prev parent reply other threads:[~2017-11-14 19:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-14 18:01 [Qemu-devel] [PATCH for-2.11? v7 0/6] block: Don't compare strings in bdrv_reopen_prepare() Max Reitz
2017-11-14 18:01 ` [Qemu-devel] [PATCH for-2.11? v7 1/6] qapi/qnull: Add own header Max Reitz
2017-11-14 18:01 ` [Qemu-devel] [PATCH for-2.11? v7 2/6] qapi/qlist: Add qlist_append_null() macro Max Reitz
2017-11-14 18:01 ` [Qemu-devel] [PATCH for-2.11? v7 3/6] qapi: Add qobject_is_equal() Max Reitz
2017-11-14 18:01 ` [Qemu-devel] [PATCH for-2.11? v7 4/6] block: qobject_is_equal() in bdrv_reopen_prepare() Max Reitz
2017-11-14 18:01 ` [Qemu-devel] [PATCH for-2.11? v7 5/6] iotests: Add test for non-string option reopening Max Reitz
2017-11-14 18:01 ` [Qemu-devel] [PATCH for-2.11? v7 6/6] tests: Add check-qobject for equality tests Max Reitz
2017-11-14 19:35 ` Eric Blake [this message]
2017-11-14 19:31 ` [Qemu-devel] [PATCH for-2.11? v7 0/6] block: Don't compare strings in bdrv_reopen_prepare() Eric Blake
2017-11-14 23:29 ` Max Reitz
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=0e5f02a3-6482-a49d-5e3c-cc51868056dc@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).