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 6cabf78e7c..c6aead09c9 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -9747,6 +9747,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
*/
@@ -9838,6 +9846,7 @@ static virHypervisorDriver testHypervisorDriver = {
.domainFSFreeze = testDomainFSFreeze, /* 5.7.0 */
.domainFSThaw = testDomainFSThaw, /* 5.7.0 */
.domainFSTrim = testDomainFSTrim, /* 5.7.0 */
+ .domainDetachDevice = testDomainDetachDevice, /* 7.7.0 */
.domainDetachDeviceAlias = testDomainDetachDeviceAlias, /* 7.7.0 */
.domainDetachDeviceFlags = testDomainDetachDeviceFlags, /* 7.7.0 */
.domainGetAutostart = testDomainGetAutostart, /* 0.3.2 */
--
2.33.0