Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
65979e5b
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看板
提交
65979e5b
编写于
5月 26, 2016
作者:
T
Tomáš Ryšavý
提交者:
John Ferlan
6月 08, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tests: Rename virtTestDifferenceBin to virTestDifferenceBin.
This function doesn't follow our convention of naming functions.
上级
b468e8ba
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
11 deletion
+11
-11
tests/testutils.c
tests/testutils.c
+4
-4
tests/testutils.h
tests/testutils.h
+4
-4
tests/virnetmessagetest.c
tests/virnetmessagetest.c
+3
-3
未找到文件。
tests/testutils.c
浏览文件 @
65979e5b
...
...
@@ -625,10 +625,10 @@ virTestDifference(FILE *stream,
* Display expected and actual output text, trimmed to
* first and last characters at which differences occur
*/
int
vir
t
TestDifferenceBin
(
FILE
*
stream
,
const
char
*
expect
,
const
char
*
actual
,
size_t
length
)
int
virTestDifferenceBin
(
FILE
*
stream
,
const
char
*
expect
,
const
char
*
actual
,
size_t
length
)
{
size_t
start
=
0
,
end
=
length
;
ssize_t
i
;
...
...
tests/testutils.h
浏览文件 @
65979e5b
...
...
@@ -69,10 +69,10 @@ int virTestDifferenceFullNoRegenerate(FILE *stream,
const
char
*
expectName
,
const
char
*
actual
,
const
char
*
actualName
);
int
vir
t
TestDifferenceBin
(
FILE
*
stream
,
const
char
*
expect
,
const
char
*
actual
,
size_t
length
);
int
virTestDifferenceBin
(
FILE
*
stream
,
const
char
*
expect
,
const
char
*
actual
,
size_t
length
);
int
virTestCompareToFile
(
const
char
*
strcontent
,
const
char
*
filename
);
...
...
tests/virnetmessagetest.c
浏览文件 @
65979e5b
...
...
@@ -77,7 +77,7 @@ static int testMessageHeaderEncode(const void *args ATTRIBUTE_UNUSED)
}
if
(
memcmp
(
expect
,
msg
->
buffer
,
sizeof
(
expect
))
!=
0
)
{
vir
t
TestDifferenceBin
(
stderr
,
expect
,
msg
->
buffer
,
sizeof
(
expect
));
virTestDifferenceBin
(
stderr
,
expect
,
msg
->
buffer
,
sizeof
(
expect
));
goto
cleanup
;
}
...
...
@@ -269,7 +269,7 @@ static int testMessagePayloadEncode(const void *args ATTRIBUTE_UNUSED)
}
if
(
memcmp
(
expect
,
msg
->
buffer
,
sizeof
(
expect
))
!=
0
)
{
vir
t
TestDifferenceBin
(
stderr
,
expect
,
msg
->
buffer
,
sizeof
(
expect
));
virTestDifferenceBin
(
stderr
,
expect
,
msg
->
buffer
,
sizeof
(
expect
));
goto
cleanup
;
}
...
...
@@ -511,7 +511,7 @@ static int testMessagePayloadStreamEncode(const void *args ATTRIBUTE_UNUSED)
}
if
(
memcmp
(
expect
,
msg
->
buffer
,
sizeof
(
expect
))
!=
0
)
{
vir
t
TestDifferenceBin
(
stderr
,
expect
,
msg
->
buffer
,
sizeof
(
expect
));
virTestDifferenceBin
(
stderr
,
expect
,
msg
->
buffer
,
sizeof
(
expect
));
goto
cleanup
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录