tests: Add more DO_TEST_CAPS_*() macros
commit5a050f019104b0775350f8b5d61694e9466ba303
authorAndrea Bolognani <abologna@redhat.com>
Tue, 2 Jul 2019 15:37:20 +0000 (2 17:37 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 3 Jul 2019 08:18:38 +0000 (3 10:18 +0200)
treef0f1c1ba29fac388661f0fa4938f91a66c22647f
parentdaf17438a80ad49659804ace08a4920dba34f453
tests: Add more DO_TEST_CAPS_*() macros

Right now we have macros such as DO_TEST_CAPS_LATEST_PARSE_ERROR()
and DO_TEST_CAPS_ARCH_VER(), but there is no concise way to say
"using this version of QEMU on this architecture will result in a
failure".

This commit adds

  DO_TEST_CAPS_ARCH_LATEST_FAILURE()
  DO_TEST_CAPS_ARCH_VER_FAILURE()
  DO_TEST_CAPS_ARCH_LATEST_PARSE_ERROR()
  DO_TEST_CAPS_ARCH_VER_PARSE_ERROR()

and reworks

  DO_TEST_CAPS_LATEST_FAILURE()
  DO_TEST_CAPS_LATEST_PARSE_ERROR()

to use the corresponding DO_CAPS_TEST_ARCH_*() macros instead of
using DO_TEST_CAPS_ARCH_LATEST_FULL() directly.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuxml2argvtest.c