From eb27a233f27380f59905d0a64457777d79f54049 Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Tue, 30 Mar 2021 11:05:59 -0500 Subject: [PATCH] tests: trivial change to mdevctl test macro In order to be able to pass a string as user data to the test function, change the DO_TEST_FULL() macro to expect a pointer and pass it directly to virTestRun(). Previously we expected the caller to pass a struct variable and then passed the address of that to virTestRun(). Signed-off-by: Jonathon Jongsma Reviewed-by: Erik Skultety --- tests/nodedevmdevctltest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/nodedevmdevctltest.c b/tests/nodedevmdevctltest.c index 650e46a29f..32a7afa2de 100644 --- a/tests/nodedevmdevctltest.c +++ b/tests/nodedevmdevctltest.c @@ -265,13 +265,13 @@ mymain(void) } #define DO_TEST_FULL(desc, func, info) \ - if (virTestRun(desc, func, &info) < 0) \ + if (virTestRun(desc, func, info) < 0) \ ret = -1; #define DO_TEST_START_FULL(virt_type, create, filename) \ do { \ struct startTestInfo info = { virt_type, create, filename }; \ - DO_TEST_FULL("mdevctl start " filename, testMdevctlStartHelper, info); \ + DO_TEST_FULL("mdevctl start " filename, testMdevctlStartHelper, &info); \ } \ while (0)