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:
Ján Tomko 2020-11-24 15:24:26 +01:00
parent 8f8eeb3750
commit 3fcf498174
1 changed files with 4 additions and 4 deletions

View File

@ -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;