提交 c466816e 编写于 作者: I Ilias Stamatis 提交者: Erik Skultety

test_driver: implement virDomainCreateXMLWithFile

This should just forward the call to testDomainCreateXML since we
can't do anything with the provided file descriptors in the test driver.
Signed-off-by: NIlias Stamatis <stamatis.iliass@gmail.com>
上级 dace3ed3
......@@ -1684,6 +1684,17 @@ testDomainCreateXML(virConnectPtr conn, const char *xml,
}
static virDomainPtr
testDomainCreateXMLWithFiles(virConnectPtr conn,
const char *xml,
unsigned int nfiles ATTRIBUTE_UNUSED,
int *files ATTRIBUTE_UNUSED,
unsigned int flags)
{
return testDomainCreateXML(conn, xml, flags);
}
static virDomainPtr testDomainLookupByID(virConnectPtr conn,
int id)
{
......@@ -8614,6 +8625,7 @@ static virHypervisorDriver testHypervisorDriver = {
.connectNumOfDomains = testConnectNumOfDomains, /* 0.1.1 */
.connectListAllDomains = testConnectListAllDomains, /* 0.9.13 */
.domainCreateXML = testDomainCreateXML, /* 0.1.4 */
.domainCreateXMLWithFiles = testDomainCreateXMLWithFiles, /* 5.7.0 */
.domainLookupByID = testDomainLookupByID, /* 0.1.1 */
.domainLookupByUUID = testDomainLookupByUUID, /* 0.1.1 */
.domainLookupByName = testDomainLookupByName, /* 0.1.1 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册