Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
201f01ab
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
201f01ab
编写于
7月 25, 2013
作者:
J
Jiri Denemark
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tests: Add support for passing driver to qemu monitor
The driver is then passed to monitor event handlers.
上级
a950b4f9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
5 deletion
+8
-5
tests/qemuhotplugtest.c
tests/qemuhotplugtest.c
+1
-1
tests/qemumonitortestutils.c
tests/qemumonitortestutils.c
+3
-2
tests/qemumonitortestutils.h
tests/qemumonitortestutils.h
+4
-2
未找到文件。
tests/qemuhotplugtest.c
浏览文件 @
201f01ab
...
@@ -242,7 +242,7 @@ testQemuHotplug(const void *data)
...
@@ -242,7 +242,7 @@ testQemuHotplug(const void *data)
/* Now is the best time to feed the spoofed monitor with predefined
/* Now is the best time to feed the spoofed monitor with predefined
* replies. */
* replies. */
if
(
!
(
test_mon
=
qemuMonitorTestNew
(
true
,
driver
.
xmlopt
,
vm
)))
if
(
!
(
test_mon
=
qemuMonitorTestNew
(
true
,
driver
.
xmlopt
,
vm
,
&
driver
)))
goto
cleanup
;
goto
cleanup
;
tmp
=
test
->
mon
;
tmp
=
test
->
mon
;
...
...
tests/qemumonitortestutils.c
浏览文件 @
201f01ab
...
@@ -869,7 +869,8 @@ error:
...
@@ -869,7 +869,8 @@ error:
qemuMonitorTestPtr
qemuMonitorTestPtr
qemuMonitorTestNew
(
bool
json
,
qemuMonitorTestNew
(
bool
json
,
virDomainXMLOptionPtr
xmlopt
,
virDomainXMLOptionPtr
xmlopt
,
virDomainObjPtr
vm
)
virDomainObjPtr
vm
,
virQEMUDriverPtr
driver
)
{
{
qemuMonitorTestPtr
test
=
NULL
;
qemuMonitorTestPtr
test
=
NULL
;
virDomainChrSourceDef
src
;
virDomainChrSourceDef
src
;
...
@@ -882,7 +883,7 @@ qemuMonitorTestNew(bool json,
...
@@ -882,7 +883,7 @@ qemuMonitorTestNew(bool json,
&
src
,
&
src
,
json
,
json
,
&
qemuMonitorTestCallbacks
,
&
qemuMonitorTestCallbacks
,
NULL
)))
driver
)))
goto
error
;
goto
error
;
virObjectLock
(
test
->
mon
);
virObjectLock
(
test
->
mon
);
...
...
tests/qemumonitortestutils.h
浏览文件 @
201f01ab
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
# define __VIR_QEMU_MONITOR_TEST_UTILS_H__
# define __VIR_QEMU_MONITOR_TEST_UTILS_H__
# include "domain_conf.h"
# include "domain_conf.h"
# include "qemu/qemu_conf.h"
# include "qemu/qemu_monitor.h"
# include "qemu/qemu_monitor.h"
# include "qemu/qemu_agent.h"
# include "qemu/qemu_agent.h"
...
@@ -60,11 +61,12 @@ int qemuMonitorTestAddItemParams(qemuMonitorTestPtr test,
...
@@ -60,11 +61,12 @@ int qemuMonitorTestAddItemParams(qemuMonitorTestPtr test,
ATTRIBUTE_SENTINEL
;
ATTRIBUTE_SENTINEL
;
# define qemuMonitorTestNewSimple(json, xmlopt) \
# define qemuMonitorTestNewSimple(json, xmlopt) \
qemuMonitorTestNew(json, xmlopt, NULL)
qemuMonitorTestNew(json, xmlopt, NULL
, NULL
)
qemuMonitorTestPtr
qemuMonitorTestNew
(
bool
json
,
qemuMonitorTestPtr
qemuMonitorTestNew
(
bool
json
,
virDomainXMLOptionPtr
xmlopt
,
virDomainXMLOptionPtr
xmlopt
,
virDomainObjPtr
vm
);
virDomainObjPtr
vm
,
virQEMUDriverPtr
driver
);
qemuMonitorTestPtr
qemuMonitorTestNewAgent
(
virDomainXMLOptionPtr
xmlopt
);
qemuMonitorTestPtr
qemuMonitorTestNewAgent
(
virDomainXMLOptionPtr
xmlopt
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录