Signed-off-by: Luke Yue <lukedyue(a)gmail.com>
---
src/test/test_driver.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index 5e4d6d37ef..6cabf78e7c 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -9737,6 +9737,16 @@ testDomainDetachDeviceFlags(virDomainPtr dom,
return testDomainChgDevice(dom, VIR_DOMAIN_DEVICE_ACTION_DETACH,
xml, NULL, flags);
}
+
+static int
+testDomainDetachDeviceAlias(virDomainPtr dom,
+ const char *alias,
+ unsigned int flags)
+{
+ return testDomainChgDevice(dom, VIR_DOMAIN_DEVICE_ACTION_DETACH,
+ NULL, alias, flags);
+}
+
/*
* Test driver
*/
@@ -9828,6 +9838,7 @@ static virHypervisorDriver testHypervisorDriver = {
.domainFSFreeze = testDomainFSFreeze, /* 5.7.0 */
.domainFSThaw = testDomainFSThaw, /* 5.7.0 */
.domainFSTrim = testDomainFSTrim, /* 5.7.0 */
+ .domainDetachDeviceAlias = testDomainDetachDeviceAlias, /* 7.7.0 */
.domainDetachDeviceFlags = testDomainDetachDeviceFlags, /* 7.7.0 */
.domainGetAutostart = testDomainGetAutostart, /* 0.3.2 */
.domainSetAutostart = testDomainSetAutostart, /* 0.3.2 */
--
2.33.0