mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
tests: qemuxml2argv: remove DO_TEST_PARSE_FLAGS_ERROR
It only has one caller. Just use DO_TEST_FULL Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
8bffb1fcd5
commit
d68c9068c9
@ -889,12 +889,6 @@ mymain(void)
|
||||
ARG_FLAGS, FLAG_EXPECT_PARSE_ERROR | FLAG_EXPECT_FAILURE, \
|
||||
ARG_QEMU_CAPS, __VA_ARGS__)
|
||||
|
||||
# define DO_TEST_PARSE_FLAGS_ERROR(name, parseFlags, ...) \
|
||||
DO_TEST_FULL(name, \
|
||||
ARG_PARSEFLAGS, parseFlags, \
|
||||
ARG_FLAGS, FLAG_EXPECT_PARSE_ERROR | FLAG_EXPECT_FAILURE, \
|
||||
ARG_QEMU_CAPS, __VA_ARGS__)
|
||||
|
||||
# define NONE QEMU_CAPS_LAST
|
||||
|
||||
/* Unset or set all envvars here that are copied in qemudBuildCommandLine
|
||||
@ -2904,9 +2898,10 @@ mymain(void)
|
||||
/* VM XML has invalid arch/ostype/virttype combo, but the SKIP flag
|
||||
* will avoid the error. Still, we expect qemu driver to complain about
|
||||
* missing machine error, and not crash */
|
||||
DO_TEST_PARSE_FLAGS_ERROR("missing-machine",
|
||||
VIR_DOMAIN_DEF_PARSE_SKIP_VALIDATE,
|
||||
NONE);
|
||||
DO_TEST_FULL("missing-machine",
|
||||
ARG_FLAGS, FLAG_EXPECT_PARSE_ERROR | FLAG_EXPECT_FAILURE,
|
||||
ARG_PARSEFLAGS, VIR_DOMAIN_DEF_PARSE_SKIP_VALIDATE,
|
||||
ARG_QEMU_CAPS, NONE);
|
||||
|
||||
DO_TEST("name-escape",
|
||||
QEMU_CAPS_NAME_DEBUG_THREADS,
|
||||
|
Loading…
x
Reference in New Issue
Block a user