Signed-off-by: Luke Yue <lukedyue(a)gmail.com>
---
src/test/test_driver.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index 9843340fec..b1ca6a7b97 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -10261,6 +10261,14 @@ testDomainDetachDeviceAlias(virDomainPtr dom,
NULL, alias, flags);
}
+static int
+testDomainDetachDevice(virDomainPtr dom,
+ const char *xml)
+{
+ return testDomainDetachDeviceFlags(dom, xml,
+ VIR_DOMAIN_AFFECT_LIVE);
+}
+
/*
* Test driver
*/
@@ -10358,6 +10366,7 @@ static virHypervisorDriver testHypervisorDriver = {
.domainFSFreeze = testDomainFSFreeze, /* 5.7.0 */
.domainFSThaw = testDomainFSThaw, /* 5.7.0 */
.domainFSTrim = testDomainFSTrim, /* 5.7.0 */
+ .domainDetachDevice = testDomainDetachDevice, /* 7.10.0 */
.domainDetachDeviceAlias = testDomainDetachDeviceAlias, /* 7.10.0 */
.domainDetachDeviceFlags = testDomainDetachDeviceFlags, /* 7.10.0 */
.domainGetAutostart = testDomainGetAutostart, /* 0.3.2 */
--
2.33.1