]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: qemuxml2argv: add a comment separating DO_TEST* macros
authorCole Robinson <crobinso@redhat.com>
Thu, 14 Mar 2019 13:43:23 +0000 (09:43 -0400)
committerCole Robinson <crobinso@redhat.com>
Thu, 21 Mar 2019 16:43:02 +0000 (12:43 -0400)
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
tests/qemuxml2argvtest.c

index 52d093d0d0a2e5e613409771a4585cda1a086f2d..f145c2ac0b777dfb51c7f4dd6bd14ddc7a6b72b2 100644 (file)
@@ -845,6 +845,7 @@ mymain(void)
 # define DO_TEST_CAPS_LATEST_PARSE_ERROR(name) \
     DO_TEST_CAPS_ARCH_LATEST_FULL(name, "x86_64", FLAG_EXPECT_PARSE_ERROR, 0)
 
+
 # define DO_TEST_FULL(name, ...) \
     do { \
         static struct testInfo info = { \
@@ -860,6 +861,9 @@ mymain(void)
         virObjectUnref(info.qemuCaps); \
     } while (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(name, ...) \
     DO_TEST_FULL(name, \
                  ARG_QEMU_CAPS, __VA_ARGS__)