mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: Add support for passing driver to qemu monitor
The driver is then passed to monitor event handlers.
This commit is contained in:
@@ -869,7 +869,8 @@ error:
|
||||
qemuMonitorTestPtr
|
||||
qemuMonitorTestNew(bool json,
|
||||
virDomainXMLOptionPtr xmlopt,
|
||||
virDomainObjPtr vm)
|
||||
virDomainObjPtr vm,
|
||||
virQEMUDriverPtr driver)
|
||||
{
|
||||
qemuMonitorTestPtr test = NULL;
|
||||
virDomainChrSourceDef src;
|
||||
@@ -882,7 +883,7 @@ qemuMonitorTestNew(bool json,
|
||||
&src,
|
||||
json,
|
||||
&qemuMonitorTestCallbacks,
|
||||
NULL)))
|
||||
driver)))
|
||||
goto error;
|
||||
|
||||
virObjectLock(test->mon);
|
||||
|
||||
Reference in New Issue
Block a user