Creating a privileged config ensures these are already set
correctly.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
tests/qemuxml2argvtest.c | 6 ------
tests/qemuxml2xmltest.c | 3 ---
2 files changed, 9 deletions(-)
diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
index 22c0642d25..892c74f917 100644
--- a/tests/qemuxml2argvtest.c
+++ b/tests/qemuxml2argvtest.c
@@ -830,8 +830,6 @@ mymain(void)
linuxCaps = driver.caps;
macOSCaps = testQemuCapsInitMacOS();
- VIR_FREE(driver.config->defaultTLSx509certdir);
- driver.config->defaultTLSx509certdir = g_strdup("/etc/pki/qemu");
VIR_FREE(driver.config->vncTLSx509certdir);
driver.config->vncTLSx509certdir = g_strdup("/etc/pki/libvirt-vnc");
VIR_FREE(driver.config->spiceTLSx509certdir);
@@ -857,10 +855,6 @@ mymain(void)
driver.config->hugetlbfs[0].deflt = true;
driver.config->hugetlbfs[1].size = 1048576;
driver.config->spicePassword = g_strdup("123456");
- VIR_FREE(driver.config->memoryBackingDir);
- driver.config->memoryBackingDir =
g_strdup("/var/lib/libvirt/qemu/ram");
- VIR_FREE(driver.config->nvramDir);
- driver.config->nvramDir = g_strdup("/var/lib/libvirt/qemu/nvram");
virFileWrapperAddPrefix(SYSCONFDIR "/qemu/firmware",
abs_srcdir "/qemufirmwaredata/etc/qemu/firmware");
diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c
index 7ccf3ab97f..8860e11006 100644
--- a/tests/qemuxml2xmltest.c
+++ b/tests/qemuxml2xmltest.c
@@ -149,9 +149,6 @@ mymain(void)
cfg = virQEMUDriverGetConfig(&driver);
- VIR_FREE(cfg->nvramDir);
- cfg->nvramDir = g_strdup("/var/lib/libvirt/qemu/nvram");
-
if (!(conn = virGetConnect()))
goto cleanup;
--
2.39.2