Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
c7a633f9
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c7a633f9
编写于
2月 16, 2018
作者:
R
Rod Sheeter
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[subset] try to get more info from bot where g_assert_cmpmem fails
上级
0bb2d7ac
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
13 addition
and
10 deletion
+13
-10
test/api/hb-subset-test.h
test/api/hb-subset-test.h
+5
-7
test/api/hb-test.h
test/api/hb-test.h
+8
-3
未找到文件。
test/api/hb-subset-test.h
浏览文件 @
c7a633f9
...
...
@@ -112,13 +112,11 @@ hb_subset_test_check (hb_face_t *expected,
hb_face_t
*
actual
,
hb_tag_t
table
)
{
hb_blob_t
*
glyf_expected_blob
=
hb_face_reference_table
(
expected
,
table
);
hb_blob_t
*
glyf_actual_blob
=
hb_face_reference_table
(
actual
,
table
);
unsigned
int
expected_length
,
actual_length
;
g_assert_cmpmem
(
hb_blob_get_data
(
glyf_expected_blob
,
&
expected_length
),
expected_length
,
hb_blob_get_data
(
glyf_actual_blob
,
&
actual_length
),
actual_length
);
hb_blob_destroy
(
glyf_actual_blob
);
hb_blob_destroy
(
glyf_expected_blob
);
hb_blob_t
*
expected_blob
=
hb_face_reference_table
(
expected
,
table
);
hb_blob_t
*
actual_blob
=
hb_face_reference_table
(
actual
,
table
);
hb_test_assert_blob_eq
(
expected_blob
,
actual_blob
);
hb_blob_destroy
(
expected_blob
);
hb_blob_destroy
(
actual_blob
);
}
...
...
test/api/hb-test.h
浏览文件 @
c7a633f9
...
...
@@ -161,9 +161,14 @@ typedef void (*hb_test_fixture_func_t) (void);
#define g_test_fail() g_error("Test failed")
#endif
#ifndef g_assert_cmpmem
#define g_assert_cmpmem(m1, l1, m2, l2) g_assert_true (l1 == l2 && memcmp (m1, m2, l1) == 0)
#endif
static
inline
void
hb_test_assert_blob_eq
(
hb_blob_t
*
expected_blob
,
hb_blob_t
*
actual_blob
)
{
unsigned
int
expected_length
,
actual_length
;
const
char
*
raw_expected
=
hb_blob_get_data
(
expected_blob
,
&
expected_length
);
const
char
*
raw_actual
=
hb_blob_get_data
(
actual_blob
,
&
actual_length
);
g_assert_cmpint
(
expected_length
,
==
,
actual_length
);
g_assert_cmpint
(
0
,
==
,
memcmp
(
raw_expected
,
raw_actual
,
expected_length
));
}
static
inline
void
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录