Re: [PATCH 12/21] tests: qemuxml2argv: add a comment separating DO_TEST* macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2019-03-14 at 10:44 -0400, Cole Robinson wrote:
> Signed-off-by: Cole Robinson <crobinso@xxxxxxxxxx>
> ---
>  tests/qemuxml2argvtest.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
> index 130ab29d6e..b555166e82 100644
> --- a/tests/qemuxml2argvtest.c
> +++ b/tests/qemuxml2argvtest.c
> @@ -832,6 +832,9 @@ mymain(void)
>  # define DO_TEST_CAPS_LATEST_PARSE_ERROR(name) \
>      DO_TEST_CAPS_ARCH_LATEST_FULL(name, "x86_64", FLAG_EXPECT_PARSE_ERROR, 0)
>  
> +
> +/* All the following macros require an explicit QEMU_CAPS_* list
> + * at the end of the argument list, or the NONE placeholder */
>  # define DO_TEST_FULL(name, ...) \
>      do { \
>          static struct testInfo info = { \

The comment does actually not apply to DO_TEST_FULL(), which expects
a series of ARG_* and corresponding arguments rather than a list of
QEMU_CAPS_*, so you should move it one macro down - right before
DO_TEST() - instead.

Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx>

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux