mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-29 17:33:09 +00:00
Fix test driver 'save' deadlock
This commit is contained in:
parent
b44af714d3
commit
d2c77e06c7
@ -1,3 +1,7 @@
|
|||||||
|
Mon Mar 16 13:12:59 EDT 2009 Cole Robinson <crobinso@redhat.com>
|
||||||
|
|
||||||
|
* src/test.c: Fix test driver 'save' deadlock
|
||||||
|
|
||||||
Mon Mar 16 13:52:00 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
|
Mon Mar 16 13:52:00 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
Support SASL auth for VNC server.
|
Support SASL auth for VNC server.
|
||||||
|
@ -1172,8 +1172,6 @@ cleanup:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *testDomainDumpXML(virDomainPtr domain, int flags);
|
|
||||||
|
|
||||||
#define TEST_SAVE_MAGIC "TestGuestMagic"
|
#define TEST_SAVE_MAGIC "TestGuestMagic"
|
||||||
|
|
||||||
static int testDomainSave(virDomainPtr domain,
|
static int testDomainSave(virDomainPtr domain,
|
||||||
@ -1196,7 +1194,10 @@ static int testDomainSave(virDomainPtr domain,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
xml = testDomainDumpXML(domain, 0);
|
xml = virDomainDefFormat(domain->conn,
|
||||||
|
privdom->def,
|
||||||
|
VIR_DOMAIN_XML_SECURE);
|
||||||
|
|
||||||
if (xml == NULL) {
|
if (xml == NULL) {
|
||||||
virReportSystemError(domain->conn, errno,
|
virReportSystemError(domain->conn, errno,
|
||||||
_("saving domain '%s' failed to allocate space for metadata"),
|
_("saving domain '%s' failed to allocate space for metadata"),
|
||||||
|
Loading…
Reference in New Issue
Block a user