]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virbuftest: use field names when initalizing test info
authorJán Tomko <jtomko@redhat.com>
Tue, 14 Jan 2020 07:06:34 +0000 (08:06 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 15 Jan 2020 16:10:20 +0000 (17:10 +0100)
commit46afdc21207d3276f0e100b6e54ca41ee5f12e99
treea8f946b14829942f35b28154bc3f7c8b1413295c
parentebd44715f19a81f16b2e263b262c0099fe94a0b6
virbuftest: use field names when initalizing test info

Allow adding new fields without changing all the macros.

Otherwise the compiler complains that not all have been initialized:
../../tests/virbuftest.c:419:5: error: missing field 'arg' initializer [-Werror,-Wmissing-field-initializers]
    DO_TEST_ESCAPE("<td></td><td></td>",
    ^
../../tests/virbuftest.c:414:56: note: expanded from macro 'DO_TEST_ESCAPE'
        struct testBufAddStrData info = { data, expect }; \

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
tests/virbuftest.c