From: Jonathon Jongsma Date: Tue, 30 Mar 2021 16:05:59 +0000 (-0500) Subject: tests: trivial change to mdevctl test macro X-Git-Tag: v7.3.0-rc1~348 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb27a233f27380f59905d0a64457777d79f54049;p=thirdparty%2Flibvirt.git 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 --- 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)