Give the testing function access to the test name instead of only
passing it to virTestRun.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
#define VIR_FROM_THIS VIR_FROM_NONE
struct testInfo {
+ const char *name;
const char *doc;
const char *expect;
bool pass;
#define DO_TEST_FULL(name, cmd, doc, expect, pass) \
do { \
- struct testInfo info = { doc, expect, pass }; \
+ struct testInfo info = { name, doc, expect, pass }; \
if (virTestRun(name, testJSON ## cmd, &info) < 0) \
ret = -1; \
} while (0)