mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +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>
|
||||
|
||||
Support SASL auth for VNC server.
|
||||
|
@ -1172,8 +1172,6 @@ cleanup:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static char *testDomainDumpXML(virDomainPtr domain, int flags);
|
||||
|
||||
#define TEST_SAVE_MAGIC "TestGuestMagic"
|
||||
|
||||
static int testDomainSave(virDomainPtr domain,
|
||||
@ -1196,7 +1194,10 @@ static int testDomainSave(virDomainPtr domain,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
xml = testDomainDumpXML(domain, 0);
|
||||
xml = virDomainDefFormat(domain->conn,
|
||||
privdom->def,
|
||||
VIR_DOMAIN_XML_SECURE);
|
||||
|
||||
if (xml == NULL) {
|
||||
virReportSystemError(domain->conn, errno,
|
||||
_("saving domain '%s' failed to allocate space for metadata"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user