mirror of https://gitee.com/openkylin/libvirt.git
tests: bhyve: remove magic constants
Refer to flags by their identifier, not value. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
8f8eeb3750
commit
3fcf498174
|
@ -131,16 +131,16 @@ mymain(void)
|
|||
DO_TEST_FULL(name, 0)
|
||||
|
||||
# define DO_TEST_FAIL(name) \
|
||||
DO_TEST_FULL(name, 5)
|
||||
DO_TEST_FULL(name, FLAG_EXPECT_FAILURE | FLAG_EXPECT_WARNING)
|
||||
|
||||
# define DO_TEST_WARN(name) \
|
||||
DO_TEST_FULL(name, 4)
|
||||
DO_TEST_FULL(name, FLAG_EXPECT_WARNING)
|
||||
|
||||
# define DO_TEST_FAIL_SILENT(name) \
|
||||
DO_TEST_FULL(name, 1)
|
||||
DO_TEST_FULL(name, FLAG_EXPECT_FAILURE)
|
||||
|
||||
# define DO_TEST_PARSE_ERROR(name) \
|
||||
DO_TEST_FULL(name, 2)
|
||||
DO_TEST_FULL(name, FLAG_EXPECT_PARSE_ERROR)
|
||||
|
||||
driver.grubcaps = BHYVE_GRUB_CAP_CONSDEV;
|
||||
driver.bhyvecaps = BHYVE_CAP_RTC_UTC;
|
||||
|
|
Loading…
Reference in New Issue