mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-09-23 17:45:17 +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:
@@ -265,13 +265,13 @@ mymain(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define DO_TEST_FULL(desc, func, info) \
|
#define DO_TEST_FULL(desc, func, info) \
|
||||||
if (virTestRun(desc, func, &info) < 0) \
|
if (virTestRun(desc, func, info) < 0) \
|
||||||
ret = -1;
|
ret = -1;
|
||||||
|
|
||||||
#define DO_TEST_START_FULL(virt_type, create, filename) \
|
#define DO_TEST_START_FULL(virt_type, create, filename) \
|
||||||
do { \
|
do { \
|
||||||
struct startTestInfo info = { virt_type, create, filename }; \
|
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)
|
while (0)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user