g_autoptr(virConnect) conn = NULL;
struct testQemuConf testConf = { .capslatest = capslatest,
.capscache = capscache,
- .qapiSchemaCache = NULL };
+ .qapiSchemaCache = NULL,
+ .retptr = NULL };
if (!capslatest)
return EXIT_FAILURE;
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 };
+ .qapiSchemaCache = qapiSchemaCache,
+ .retptr = &ret };
if (!capslatest)
return EXIT_FAILURE;
}; \
testQemuInfoSetArgs(&info, &testConf, __VA_ARGS__); \
testInfoSetPaths(&info, _suffix); \
- if (virTestRun("QEMU XML-2-ARGV " _name _suffix, \
- testCompareXMLToArgv, &info) < 0) \
- ret = -1; \
+ virTestRun("QEMU XML-2-ARGV " _name _suffix, testCompareXMLToArgv, &info); \
testQemuInfoClear(&info); \
} while (0)
g_autoptr(virConnect) conn = NULL;
struct testQemuConf testConf = { .capslatest = capslatest,
.capscache = capscache,
- .qapiSchemaCache = NULL };
+ .qapiSchemaCache = NULL,
+ .retptr = NULL };
if (!capslatest)
return EXIT_FAILURE;