Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
9973032f
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9973032f
编写于
11月 25, 2013
作者:
C
Cédric Bosdonnat
提交者:
Daniel P. Berrange
12月 10, 2013
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test driver: renamed testDomainEventQueue into testObjectEventQueue
上级
620103fe
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
20 addition
and
20 deletion
+20
-20
src/test/test_driver.c
src/test/test_driver.c
+20
-20
未找到文件。
src/test/test_driver.c
浏览文件 @
9973032f
...
...
@@ -121,7 +121,7 @@ static const virNodeInfo defaultNodeInfo = {
static
int
testConnectClose
(
virConnectPtr
conn
);
static
void
test
Domain
EventQueue
(
testConnPtr
driver
,
static
void
test
Object
EventQueue
(
testConnPtr
driver
,
virObjectEventPtr
event
);
...
...
@@ -1650,7 +1650,7 @@ cleanup:
if
(
dom
)
virObjectUnlock
(
dom
);
if
(
event
)
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
virDomainDefFree
(
def
);
testDriverUnlock
(
privconn
);
return
ret
;
...
...
@@ -1781,7 +1781,7 @@ cleanup:
if
(
privdom
)
virObjectUnlock
(
privdom
);
if
(
event
)
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
testDriverUnlock
(
privconn
);
return
ret
;
}
...
...
@@ -1821,7 +1821,7 @@ cleanup:
virObjectUnlock
(
privdom
);
if
(
event
)
{
testDriverLock
(
privconn
);
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
testDriverUnlock
(
privconn
);
}
return
ret
;
...
...
@@ -1864,7 +1864,7 @@ cleanup:
if
(
event
)
{
testDriverLock
(
privconn
);
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
testDriverUnlock
(
privconn
);
}
return
ret
;
...
...
@@ -1911,7 +1911,7 @@ cleanup:
if
(
privdom
)
virObjectUnlock
(
privdom
);
if
(
event
)
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
testDriverUnlock
(
privconn
);
return
ret
;
}
...
...
@@ -1987,7 +1987,7 @@ cleanup:
if
(
privdom
)
virObjectUnlock
(
privdom
);
if
(
event
)
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
testDriverUnlock
(
privconn
);
return
ret
;
}
...
...
@@ -2159,7 +2159,7 @@ cleanup:
if
(
privdom
)
virObjectUnlock
(
privdom
);
if
(
event
)
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
testDriverUnlock
(
privconn
);
return
ret
;
}
...
...
@@ -2265,7 +2265,7 @@ cleanup:
if
(
dom
)
virObjectUnlock
(
dom
);
if
(
event
)
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
testDriverUnlock
(
privconn
);
return
ret
;
}
...
...
@@ -2335,7 +2335,7 @@ cleanup:
if
(
privdom
)
virObjectUnlock
(
privdom
);
if
(
event
)
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
testDriverUnlock
(
privconn
);
return
ret
;
}
...
...
@@ -2819,7 +2819,7 @@ cleanup:
if
(
dom
)
virObjectUnlock
(
dom
);
if
(
event
)
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
testDriverUnlock
(
privconn
);
return
ret
;
}
...
...
@@ -2955,7 +2955,7 @@ cleanup:
if
(
privdom
)
virObjectUnlock
(
privdom
);
if
(
event
)
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
testDriverUnlock
(
privconn
);
return
ret
;
}
...
...
@@ -3030,7 +3030,7 @@ cleanup:
if
(
privdom
)
virObjectUnlock
(
privdom
);
if
(
event
)
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
testDriverUnlock
(
privconn
);
return
ret
;
}
...
...
@@ -6028,7 +6028,7 @@ testConnectDomainEventDeregisterAny(virConnectPtr conn,
/* driver must be locked before calling */
static
void
test
Domain
EventQueue
(
testConnPtr
driver
,
static
void
test
Object
EventQueue
(
testConnPtr
driver
,
virObjectEventPtr
event
)
{
virObjectEventStateQueue
(
driver
->
domainEventState
,
event
);
...
...
@@ -6191,7 +6191,7 @@ cleanup:
virObjectUnlock
(
vm
);
if
(
event
)
{
testDriverLock
(
privconn
);
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
testDriverUnlock
(
privconn
);
}
...
...
@@ -6743,7 +6743,7 @@ cleanup:
}
if
(
event
)
{
testDriverLock
(
privconn
);
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
testDriverUnlock
(
privconn
);
}
virDomainSnapshotDefFree
(
def
);
...
...
@@ -6989,7 +6989,7 @@ testDomainRevertToSnapshot(virDomainSnapshotPtr snapshot,
VIR_DOMAIN_EVENT_STOPPED
,
VIR_DOMAIN_EVENT_STOPPED_FROM_SNAPSHOT
);
if
(
event
)
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
goto
load
;
}
...
...
@@ -7069,7 +7069,7 @@ testDomainRevertToSnapshot(virDomainSnapshotPtr snapshot,
bool
paused
=
(
flags
&
VIR_DOMAIN_SNAPSHOT_REVERT_PAUSED
)
!=
0
;
if
(
event
)
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
event
=
virDomainEventLifecycleNewFromObj
(
vm
,
VIR_DOMAIN_EVENT_STARTED
,
VIR_DOMAIN_EVENT_STARTED_FROM_SNAPSHOT
);
...
...
@@ -7085,9 +7085,9 @@ testDomainRevertToSnapshot(virDomainSnapshotPtr snapshot,
ret
=
0
;
cleanup:
if
(
event
)
{
test
Domain
EventQueue
(
privconn
,
event
);
test
Object
EventQueue
(
privconn
,
event
);
if
(
event2
)
test
Domain
EventQueue
(
privconn
,
event2
);
test
Object
EventQueue
(
privconn
,
event2
);
}
else
{
virObjectUnref
(
event2
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录