Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
4c024f75
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
大约 2 年 前同步成功
通知
475
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
4c024f75
编写于
2月 17, 2022
作者:
O
openharmony_ci
提交者:
Gitee
2月 17, 2022
浏览文件
操作
浏览文件
下载
差异文件
!806 修复A核测试用例失败的问题
Merge pull request !806 from yinjiaming/master
上级
74f8d3aa
be68dc8b
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
16 addition
and
0 deletion
+16
-0
testsuites/unittest/libc/io/full/IO_test_dcgettext_001.cpp
testsuites/unittest/libc/io/full/IO_test_dcgettext_001.cpp
+1
-0
testsuites/unittest/libc/io/full/IO_test_dcgettext_002.cpp
testsuites/unittest/libc/io/full/IO_test_dcgettext_002.cpp
+1
-0
testsuites/unittest/libc/io/full/IO_test_dcngettext_002.cpp
testsuites/unittest/libc/io/full/IO_test_dcngettext_002.cpp
+1
-0
testsuites/unittest/libc/io/full/IO_test_dngettext_001.cpp
testsuites/unittest/libc/io/full/IO_test_dngettext_001.cpp
+1
-0
testsuites/unittest/libc/io/full/IO_test_dngettext_002.cpp
testsuites/unittest/libc/io/full/IO_test_dngettext_002.cpp
+1
-0
testsuites/unittest/libc/io/full/IO_test_duplocale_001.cpp
testsuites/unittest/libc/io/full/IO_test_duplocale_001.cpp
+1
-0
testsuites/unittest/libc/io/full/IO_test_gettext_001.cpp
testsuites/unittest/libc/io/full/IO_test_gettext_001.cpp
+1
-0
testsuites/unittest/libc/io/full/IO_test_locale_001.cpp
testsuites/unittest/libc/io/full/IO_test_locale_001.cpp
+1
-0
testsuites/unittest/libc/io/full/IO_test_locale_002.cpp
testsuites/unittest/libc/io/full/IO_test_locale_002.cpp
+1
-0
testsuites/unittest/libc/io/full/IO_test_ngettext_001.cpp
testsuites/unittest/libc/io/full/IO_test_ngettext_001.cpp
+1
-0
testsuites/unittest/libc/io/full/IO_test_nl_langinfo_001.cpp
testsuites/unittest/libc/io/full/IO_test_nl_langinfo_001.cpp
+1
-0
testsuites/unittest/libc/io/full/IO_test_nl_langinfo_l_001.cpp
...uites/unittest/libc/io/full/IO_test_nl_langinfo_l_001.cpp
+1
-0
testsuites/unittest/libc/io/full/IO_test_strfmon_l_002.cpp
testsuites/unittest/libc/io/full/IO_test_strfmon_l_002.cpp
+1
-0
testsuites/unittest/libc/io/full/IO_test_strncasecmp_l_002.cpp
...uites/unittest/libc/io/full/IO_test_strncasecmp_l_002.cpp
+1
-0
testsuites/unittest/libc/io/full/It_stdio_mblen_001.cpp
testsuites/unittest/libc/io/full/It_stdio_mblen_001.cpp
+1
-0
testsuites/unittest/libc/io/full/It_stdio_mbrlen_001.cpp
testsuites/unittest/libc/io/full/It_stdio_mbrlen_001.cpp
+1
-0
未找到文件。
testsuites/unittest/libc/io/full/IO_test_dcgettext_001.cpp
浏览文件 @
4c024f75
...
@@ -46,6 +46,7 @@ static UINT32 testcase(VOID)
...
@@ -46,6 +46,7 @@ static UINT32 testcase(VOID)
s
=
dcgettext
(
"www.huawei.com"
,
"TestString1
\n
"
,
LC_MESSAGES
);
s
=
dcgettext
(
"www.huawei.com"
,
"TestString1
\n
"
,
LC_MESSAGES
);
printf
(
"[INFO]%s:%d,%s,s=%s
\n
"
,
__FILE__
,
__LINE__
,
__func__
,
s
);
printf
(
"[INFO]%s:%d,%s,s=%s
\n
"
,
__FILE__
,
__LINE__
,
__func__
,
s
);
ICUNIT_ASSERT_STRING_EQUAL
(
s
,
"TestString1
\n
"
,
s
);
ICUNIT_ASSERT_STRING_EQUAL
(
s
,
"TestString1
\n
"
,
s
);
setlocale
(
LC_ALL
,
"C"
);
return
LOS_OK
;
return
LOS_OK
;
}
}
...
...
testsuites/unittest/libc/io/full/IO_test_dcgettext_002.cpp
浏览文件 @
4c024f75
...
@@ -127,6 +127,7 @@ static UINT32 testcase(VOID)
...
@@ -127,6 +127,7 @@ static UINT32 testcase(VOID)
testcase2
();
testcase2
();
testcase3
();
testcase3
();
testcase4
();
testcase4
();
setlocale
(
LC_ALL
,
"C"
);
return
LOS_OK
;
return
LOS_OK
;
}
}
...
...
testsuites/unittest/libc/io/full/IO_test_dcngettext_002.cpp
浏览文件 @
4c024f75
...
@@ -92,6 +92,7 @@ static UINT32 testcase(VOID)
...
@@ -92,6 +92,7 @@ static UINT32 testcase(VOID)
{
{
testcase1
();
testcase1
();
testcase2
();
testcase2
();
setlocale
(
LC_ALL
,
"C"
);
return
LOS_OK
;
return
LOS_OK
;
}
}
...
...
testsuites/unittest/libc/io/full/IO_test_dngettext_001.cpp
浏览文件 @
4c024f75
...
@@ -51,6 +51,7 @@ static UINT32 testcase(VOID)
...
@@ -51,6 +51,7 @@ static UINT32 testcase(VOID)
s
=
dngettext
(
"www.huawei.com"
,
"TestString1
\n
"
,
"TestString2
\n
"
,
2
);
s
=
dngettext
(
"www.huawei.com"
,
"TestString1
\n
"
,
"TestString2
\n
"
,
2
);
printf
(
"[INFO]%s:%d,%s,s=%s
\n
"
,
__FILE__
,
__LINE__
,
__func__
,
s
);
printf
(
"[INFO]%s:%d,%s,s=%s
\n
"
,
__FILE__
,
__LINE__
,
__func__
,
s
);
ICUNIT_ASSERT_STRING_EQUAL
(
s
,
"TestString2
\n
"
,
s
);
ICUNIT_ASSERT_STRING_EQUAL
(
s
,
"TestString2
\n
"
,
s
);
setlocale
(
LC_ALL
,
"C"
);
return
LOS_OK
;
return
LOS_OK
;
}
}
...
...
testsuites/unittest/libc/io/full/IO_test_dngettext_002.cpp
浏览文件 @
4c024f75
...
@@ -121,6 +121,7 @@ static UINT32 testcase(VOID)
...
@@ -121,6 +121,7 @@ static UINT32 testcase(VOID)
testcase1
();
/* test the domain is NULL */
testcase1
();
/* test the domain is NULL */
testcase2
();
/* test the domain is different with the setlocale */
testcase2
();
/* test the domain is different with the setlocale */
testcase3
();
/* if n != 1,then dngettext will choose msgid2's string */
testcase3
();
/* if n != 1,then dngettext will choose msgid2's string */
setlocale
(
LC_ALL
,
"C"
);
return
LOS_OK
;
return
LOS_OK
;
}
}
...
...
testsuites/unittest/libc/io/full/IO_test_duplocale_001.cpp
浏览文件 @
4c024f75
...
@@ -143,6 +143,7 @@ static UINT32 testcase(VOID)
...
@@ -143,6 +143,7 @@ static UINT32 testcase(VOID)
(
VOID
)
RecoveryFileEnv
(
pathList
,
1
);
(
VOID
)
RecoveryFileEnv
(
pathList
,
1
);
status
=
WEXITSTATUS
(
status
);
status
=
WEXITSTATUS
(
status
);
ICUNIT_ASSERT_EQUAL
(
status
,
0
,
status
);
ICUNIT_ASSERT_EQUAL
(
status
,
0
,
status
);
setlocale
(
LC_ALL
,
"C"
);
return
LOS_OK
;
return
LOS_OK
;
}
}
...
...
testsuites/unittest/libc/io/full/IO_test_gettext_001.cpp
浏览文件 @
4c024f75
...
@@ -56,6 +56,7 @@ static UINT32 testcase1(VOID)
...
@@ -56,6 +56,7 @@ static UINT32 testcase1(VOID)
s
=
gettext
(
"Monday/n
\n
"
);
s
=
gettext
(
"Monday/n
\n
"
);
ICUNIT_ASSERT_STRING_EQUAL
(
s
,
"Monday/n
\n
"
,
s
);
ICUNIT_ASSERT_STRING_EQUAL
(
s
,
"Monday/n
\n
"
,
s
);
setlocale
(
LC_ALL
,
"C"
);
return
LOS_OK
;
return
LOS_OK
;
OUT:
OUT:
...
...
testsuites/unittest/libc/io/full/IO_test_locale_001.cpp
浏览文件 @
4c024f75
...
@@ -58,6 +58,7 @@ static UINT32 testcase(VOID)
...
@@ -58,6 +58,7 @@ static UINT32 testcase(VOID)
strftime
(
buffer
,
80
,
"%c"
,
timer
);
strftime
(
buffer
,
80
,
"%c"
,
timer
);
printf
(
"Date is: %s
\n
"
,
buffer
);
printf
(
"Date is: %s
\n
"
,
buffer
);
ICUNIT_ASSERT_NOT_EQUAL_NULL
(
buffer
,
NULL
,
-
1
);
ICUNIT_ASSERT_NOT_EQUAL_NULL
(
buffer
,
NULL
,
-
1
);
setlocale
(
LC_ALL
,
"C"
);
return
LOS_OK
;
return
LOS_OK
;
}
}
...
...
testsuites/unittest/libc/io/full/IO_test_locale_002.cpp
浏览文件 @
4c024f75
...
@@ -59,6 +59,7 @@ static UINT32 testcase(VOID)
...
@@ -59,6 +59,7 @@ static UINT32 testcase(VOID)
strftime
(
buffer
,
80
,
"%c"
,
timer
);
strftime
(
buffer
,
80
,
"%c"
,
timer
);
printf
(
"Date is: %s
\n
"
,
buffer
);
printf
(
"Date is: %s
\n
"
,
buffer
);
ICUNIT_ASSERT_NOT_EQUAL_NULL
(
buffer
,
NULL
,
-
1
);
ICUNIT_ASSERT_NOT_EQUAL_NULL
(
buffer
,
NULL
,
-
1
);
setlocale
(
LC_ALL
,
"C"
);
return
LOS_OK
;
return
LOS_OK
;
}
}
...
...
testsuites/unittest/libc/io/full/IO_test_ngettext_001.cpp
浏览文件 @
4c024f75
...
@@ -46,6 +46,7 @@ static UINT32 testcase(VOID)
...
@@ -46,6 +46,7 @@ static UINT32 testcase(VOID)
s
=
ngettext
(
"0123456789"
,
"0123456789"
,
2
);
s
=
ngettext
(
"0123456789"
,
"0123456789"
,
2
);
ICUNIT_ASSERT_STRING_EQUAL
(
s
,
"0123456789"
,
s
);
ICUNIT_ASSERT_STRING_EQUAL
(
s
,
"0123456789"
,
s
);
setlocale
(
LC_ALL
,
"C"
);
return
LOS_OK
;
return
LOS_OK
;
}
}
...
...
testsuites/unittest/libc/io/full/IO_test_nl_langinfo_001.cpp
浏览文件 @
4c024f75
...
@@ -90,6 +90,7 @@ static UINT32 testcase(VOID)
...
@@ -90,6 +90,7 @@ static UINT32 testcase(VOID)
char
*
string
=
nl_langinfo
(
CRNCYSTR
);
char
*
string
=
nl_langinfo
(
CRNCYSTR
);
ICUNIT_ASSERT_NOT_EQUAL_NULL
(
string
,
NULL
,
string
);
ICUNIT_ASSERT_NOT_EQUAL_NULL
(
string
,
NULL
,
string
);
setlocale
(
LC_ALL
,
"C"
);
return
LOS_OK
;
return
LOS_OK
;
}
}
...
...
testsuites/unittest/libc/io/full/IO_test_nl_langinfo_l_001.cpp
浏览文件 @
4c024f75
...
@@ -58,6 +58,7 @@ static UINT32 testcase(VOID) {
...
@@ -58,6 +58,7 @@ static UINT32 testcase(VOID) {
char
*
string
=
nl_langinfo_l
(
CRNCYSTR
,
(
locale_t
)
"zh_CN.UTF-8"
);
char
*
string
=
nl_langinfo_l
(
CRNCYSTR
,
(
locale_t
)
"zh_CN.UTF-8"
);
ICUNIT_ASSERT_NOT_EQUAL_NULL
(
string
,
NULL
,
string
);
ICUNIT_ASSERT_NOT_EQUAL_NULL
(
string
,
NULL
,
string
);
setlocale
(
LC_ALL
,
"C"
);
return
LOS_OK
;
return
LOS_OK
;
}
}
...
...
testsuites/unittest/libc/io/full/IO_test_strfmon_l_002.cpp
浏览文件 @
4c024f75
...
@@ -69,6 +69,7 @@ static UINT32 testcase1(VOID)
...
@@ -69,6 +69,7 @@ static UINT32 testcase1(VOID)
TEST_PRINT
(
"[INFO]%s:%d,%s,ret=%d,buf=%s
\n
"
,
__FILE__
,
__LINE__
,
__func__
,
ret
,
buf
);
TEST_PRINT
(
"[INFO]%s:%d,%s,ret=%d,buf=%s
\n
"
,
__FILE__
,
__LINE__
,
__func__
,
ret
,
buf
);
ICUNIT_GOTO_EQUAL
(
ret
,
23
,
ret
,
OUT
);
ICUNIT_GOTO_EQUAL
(
ret
,
23
,
ret
,
OUT
);
ICUNIT_GOTO_EQUAL
(
errno
,
0
,
errno
,
OUT
);
ICUNIT_GOTO_EQUAL
(
errno
,
0
,
errno
,
OUT
);
setlocale
(
LC_ALL
,
"C"
);
return
LOS_OK
;
return
LOS_OK
;
OUT:
OUT:
...
...
testsuites/unittest/libc/io/full/IO_test_strncasecmp_l_002.cpp
浏览文件 @
4c024f75
...
@@ -129,6 +129,7 @@ static UINT32 testcase(VOID)
...
@@ -129,6 +129,7 @@ static UINT32 testcase(VOID)
testcase2
();
testcase2
();
testcase3
();
testcase3
();
testcase4
();
testcase4
();
setlocale
(
LC_ALL
,
"C"
);
return
LOS_OK
;
return
LOS_OK
;
}
}
...
...
testsuites/unittest/libc/io/full/It_stdio_mblen_001.cpp
浏览文件 @
4c024f75
...
@@ -49,6 +49,7 @@ static UINT32 Testcase(VOID)
...
@@ -49,6 +49,7 @@ static UINT32 Testcase(VOID)
++
result
;
++
result
;
}
}
ICUNIT_GOTO_EQUAL
(
result
,
4
,
result
,
EXIT
);
// 4, except value
ICUNIT_GOTO_EQUAL
(
result
,
4
,
result
,
EXIT
);
// 4, except value
setlocale
(
LC_ALL
,
"C"
);
return
LOS_OK
;
return
LOS_OK
;
EXIT:
EXIT:
...
...
testsuites/unittest/libc/io/full/It_stdio_mbrlen_001.cpp
浏览文件 @
4c024f75
...
@@ -49,6 +49,7 @@ static UINT32 Testcase(VOID)
...
@@ -49,6 +49,7 @@ static UINT32 Testcase(VOID)
len3
=
mbrlen
(
str
+
1
,
sz
-
1
,
&
mb
);
len3
=
mbrlen
(
str
+
1
,
sz
-
1
,
&
mb
);
ICUNIT_GOTO_EQUAL
(
len3
,
-
1
,
len3
,
EXIT
);
ICUNIT_GOTO_EQUAL
(
len3
,
-
1
,
len3
,
EXIT
);
setlocale
(
LC_ALL
,
"C"
);
return
LOS_OK
;
return
LOS_OK
;
EXIT:
EXIT:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录