[PATCHv2 12/14] event [squash with next]: test per-domain events of offline domain

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

 



* tests/objecteventtest.c (testDomainCreateXMLMixed): Enhance test.
---
 tests/objecteventtest.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tests/objecteventtest.c b/tests/objecteventtest.c
index cc39dcf..65642a2 100644
--- a/tests/objecteventtest.c
+++ b/tests/objecteventtest.c
@@ -223,7 +223,7 @@ testDomainCreateXMLMixed(const void *data)
     /* Fun with mixing old and new API, also with global and
      * per-domain.  Handler should be fired three times, once for each
      * registration.  */
-    dom = virDomainCreateXML(test->conn, domainDef, 0);
+    dom = virDomainDefineXML(test->conn, domainDef);
     if (dom == NULL)
         goto cleanup;

@@ -233,8 +233,6 @@ testDomainCreateXMLMixed(const void *data)
                                            &counter, NULL);
     if (id1 < 0)
         goto cleanup;
-    if (virDomainDestroy(dom) < 0)
-        goto cleanup;
     if (virConnectDomainEventRegister(test->conn,
                                       domainLifecycleCb,
                                       &counter, NULL) != 0)
-- 
1.8.4.2

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