[PATCH 5/5] Update unit test to support multiple memory backends

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Michael Galaxy <mgalaxy@xxxxxxxxxx>

Signed-off-by: Michael Galaxy <mgalaxy@xxxxxxxxxx>
---
 tests/testutilsqemu.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/testutilsqemu.c b/tests/testutilsqemu.c
index 9c12a165b1..0da11d83c0 100644
--- a/tests/testutilsqemu.c
+++ b/tests/testutilsqemu.c
@@ -320,8 +320,9 @@ int qemuTestDriverInit(virQEMUDriver *driver)
     cfg->libDir = g_strdup("/var/lib/libvirt/qemu");
     VIR_FREE(cfg->channelTargetDir);
     cfg->channelTargetDir = g_strdup("/var/run/libvirt/qemu/channel");
-    VIR_FREE(cfg->memoryBackingDir);
-    cfg->memoryBackingDir = g_strdup("/var/lib/libvirt/qemu/ram");
+    VIR_FREE(cfg->memoryBackingDirs);
+    cfg->memoryBackingDirs = g_new0(char *, 1);
+    cfg->memoryBackingDirs[0] = g_strdup("/var/lib/libvirt/qemu/ram");
     VIR_FREE(cfg->nvramDir);
     cfg->nvramDir = g_strdup("/var/lib/libvirt/qemu/nvram");
     VIR_FREE(cfg->passtStateDir);
-- 
2.25.1
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux