]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
test_driver: implement virDomainCreateWithFiles
authorIlias Stamatis <stamatis.iliass@gmail.com>
Mon, 5 Aug 2019 09:02:22 +0000 (11:02 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 6 Aug 2019 07:05:03 +0000 (09:05 +0200)
This should just forward the call to testDomainCreateWithFlags since we
can't do anything with the provided file descriptors in the test driver.

Signed-off-by: Ilias Stamatis <stamatis.iliass@gmail.com>
src/test/test_driver.c

index aae9875194770e3ccc1403b0de9409cdf46cf719..ea1febd960f0f56da272af271661ba34df0098a7 100755 (executable)
@@ -3948,6 +3948,16 @@ static int testDomainCreate(virDomainPtr domain)
     return testDomainCreateWithFlags(domain, 0);
 }
 
+
+static int testDomainCreateWithFiles(virDomainPtr domain,
+                                     unsigned int nfiles ATTRIBUTE_UNUSED,
+                                     int *files ATTRIBUTE_UNUSED,
+                                     unsigned int flags)
+{
+    return testDomainCreateWithFlags(domain, flags);
+}
+
+
 static int testDomainUndefineFlags(virDomainPtr domain,
                                    unsigned int flags)
 {
@@ -8655,6 +8665,7 @@ static virHypervisorDriver testHypervisorDriver = {
     .connectNumOfDefinedDomains = testConnectNumOfDefinedDomains, /* 0.1.11 */
     .domainCreate = testDomainCreate, /* 0.1.11 */
     .domainCreateWithFlags = testDomainCreateWithFlags, /* 0.8.2 */
+    .domainCreateWithFiles = testDomainCreateWithFiles, /* 5.7.0 */
     .domainDefineXML = testDomainDefineXML, /* 0.1.11 */
     .domainDefineXMLFlags = testDomainDefineXMLFlags, /* 1.2.12 */
     .domainUndefine = testDomainUndefine, /* 0.1.11 */