From 3fcf49817432889601d5d00c36a01aa68d4a04d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Tue, 24 Nov 2020 15:24:26 +0100 Subject: [PATCH] tests: bhyve: remove magic constants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refer to flags by their identifier, not value. Signed-off-by: Ján Tomko Reviewed-by: Pavel Hrdina --- tests/bhyveargv2xmltest.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/bhyveargv2xmltest.c b/tests/bhyveargv2xmltest.c index 2c1ffc75f3..e86c9e3b10 100644 --- a/tests/bhyveargv2xmltest.c +++ b/tests/bhyveargv2xmltest.c @@ -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;