mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03:00
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 <jjongsma@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
8fed1d9636
commit
eb27a233f2
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user