[libvirt-glib 08/37] Create clock object in domain creation test

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

 



---
 libvirt-gconfig/tests/test-domain-create.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/libvirt-gconfig/tests/test-domain-create.c b/libvirt-gconfig/tests/test-domain-create.c
index a719ed2..a5c5b99 100644
--- a/libvirt-gconfig/tests/test-domain-create.c
+++ b/libvirt-gconfig/tests/test-domain-create.c
@@ -33,6 +33,7 @@ const char *features[] = { "foo", "bar", "baz", NULL };
 int main(void)
 {
     GVirConfigDomain *domain;
+    GVirConfigClock *klock;
     char *name;
     GStrv feat;
     unsigned int i;
@@ -59,6 +60,10 @@ int main(void)
     }
     g_strfreev(feat);
 
+    klock = gvir_config_clock_new();
+    gvir_config_clock_set_offset(klock, GVIR_CONFIG_CLOCK_UTC);
+    gvir_config_domain_set_clock(domain, klock);
+
     xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(domain));
     g_print("%s\n", xml);
     g_free(xml);
-- 
1.7.7

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[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]