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