From 3cee4c05b7d07fb0a07dae98a0e9b589b19d71f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Sat, 3 May 2014 13:12:18 +0200 Subject: [PATCH] qemuxml2argvtest: Don't use privileged mode upfront When building packages in a clean chroot the QEMU_USER and QEMU_GROUP don't exist making VirQemuDriverConfigNew fail with privileged=true. Avoid that by not requiring privileged mode upfront but setting it later so we skip the user/group existence check. This solution was suggested by Daniel P. Berrange and tested by Martin Kletzander. --- tests/qemuxml2argvtest.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index a1ef2b8002..14482fd639 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -499,9 +499,11 @@ mymain(void) return EXIT_FAILURE; } - driver.config = virQEMUDriverConfigNew(true); + driver.config = virQEMUDriverConfigNew(false); if (driver.config == NULL) return EXIT_FAILURE; + else + driver.config->privileged = true; VIR_FREE(driver.config->spiceListen); VIR_FREE(driver.config->vncListen); -- GitLab