qemu-devel
[Top][All Lists]
Advanced

[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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]