goto cleanup;
}
- log = virTestLogContentAndReset();
- VIR_FREE(log);
virResetLastError();
if (!(cmd = testCompareXMLToArgvCreateArgs(&driver, vm, migrateURI, info,
if (info->arch != VIR_ARCH_NONE && info->arch != VIR_ARCH_X86_64)
qemuTestSetHostArch(&driver, VIR_ARCH_NONE);
- if (ret < 0)
- *info->conf->retptr = ret;
-
return ret;
}
g_autoptr(GHashTable) capscache = virHashNew(virObjectFreeHashData);
struct testQemuConf testConf = { .capslatest = capslatest,
.capscache = capscache,
- .qapiSchemaCache = qapiSchemaCache,
- .retptr = &ret };
+ .qapiSchemaCache = qapiSchemaCache };
if (!capslatest)
return EXIT_FAILURE;
}; \
testQemuInfoSetArgs(&info, &testConf, __VA_ARGS__); \
testInfoSetPaths(&info, _suffix); \
- virTestRun("QEMU XML-2-ARGV " _name _suffix, testCompareXMLToArgv, &info); \
+ virTestRunLog(&ret, "QEMU XML-2-ARGV " _name _suffix, testCompareXMLToArgv, &info); \
testQemuInfoClear(&info); \
} while (0)
info->infile, info->outfile, true,
info->parseFlags,
TEST_COMPARE_DOM_XML2XML_RESULT_SUCCESS) < 0) {
- *info->conf->retptr = -1;
return -1;
}
info->infile, info->outfile, false,
info->parseFlags,
TEST_COMPARE_DOM_XML2XML_RESULT_SUCCESS) < 0) {
- *info->conf->retptr = -1;
return -1;
}
g_autoptr(virConnect) conn = NULL;
struct testQemuConf testConf = { .capslatest = capslatest,
.capscache = capscache,
- .qapiSchemaCache = NULL,
- .retptr = &ret };
+ .qapiSchemaCache = NULL };
if (!capslatest)
return EXIT_FAILURE;
\
if (when & WHEN_INACTIVE) { \
testInfoSetPaths(&info, suffix, WHEN_INACTIVE); \
- virTestRun("QEMU XML-2-XML-inactive " _name, testXML2XMLInactive, &info); \
+ virTestRunLog(&ret, "QEMU XML-2-XML-inactive " _name, testXML2XMLInactive, &info); \
} \
\
if (when & WHEN_ACTIVE) { \
testInfoSetPaths(&info, suffix, WHEN_ACTIVE); \
- virTestRun("QEMU XML-2-XML-active " _name, testXML2XMLActive, &info); \
+ virTestRunLog(&ret, "QEMU XML-2-XML-active " _name, testXML2XMLActive, &info); \
} \
testQemuInfoClear(&info); \
} while (0)