[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 02/12] check-qdict: Add test for qdict_join()
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v2 02/12] check-qdict: Add test for qdict_join() |
Date: |
Fri, 07 Mar 2014 17:21:11 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
On 03/07/2014 03:55 PM, Max Reitz wrote:
> Add some test cases for qdict_join().
>
> Signed-off-by: Max Reitz <address@hidden>
> ---
> tests/check-qdict.c | 87
> +++++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 87 insertions(+)
Reviewed-by: Eric Blake <address@hidden>
> + /* Test everything once without overwrite and once with */
> + do
> + {
> + }
> + while (overwrite ^= true);
That has got to be the coolest do-while I've seen in a long time :)
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v2 00/12] block/json: Add JSON protocol driver, Max Reitz, 2014/03/07
- [Qemu-devel] [PATCH v2 01/12] qdict: Add qdict_join(), Max Reitz, 2014/03/07
- [Qemu-devel] [PATCH v2 02/12] check-qdict: Add test for qdict_join(), Max Reitz, 2014/03/07
- [Qemu-devel] [PATCH v2 03/12] block: Add "has_single_child" field for drivers, Max Reitz, 2014/03/07
- [Qemu-devel] [PATCH v2 04/12] block/json: Add JSON protocol driver, Max Reitz, 2014/03/07
- [Qemu-devel] [PATCH v2 05/12] block/json: Add functions for cache control, Max Reitz, 2014/03/07
- [Qemu-devel] [PATCH v2 06/12] block/json: Add functions for writing zeroes etc., Max Reitz, 2014/03/07
- [Qemu-devel] [PATCH v2 07/12] block/json: Add bdrv_co_get_block_status(), Max Reitz, 2014/03/07