From 3580dfdfd0768a04870723f83aca30c808652764 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 30 Nov 2020 18:48:53 +0100 Subject: [PATCH] testCompareXMLToArgvValidateSchema: Populate autoNodeset We create a new 'vm' so we must also fake the nodeset. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- tests/qemuxml2argvtest.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 662d0d5df6..8b2df07448 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -519,6 +519,7 @@ testCompareXMLToArgvValidateSchema(virQEMUDriverPtr drv, { g_auto(GStrv) args = NULL; g_autoptr(virDomainObj) vm = NULL; + qemuDomainObjPrivatePtr priv = NULL; size_t nargs = 0; size_t i; g_autoptr(GHashTable) schema = NULL; @@ -546,6 +547,11 @@ testCompareXMLToArgvValidateSchema(virQEMUDriverPtr drv, NULL, parseFlags))) return -1; + priv = vm->privateData; + + if (virBitmapParse("0-3", &priv->autoNodeset, 4) < 0) + return -1; + if (!(cmd = testCompareXMLToArgvCreateArgs(drv, vm, migrateURI, info, flags, true))) return -1;