Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
8452488b
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
1 年多 前同步成功
通知
460
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看板
未验证
提交
8452488b
编写于
4月 21, 2023
作者:
O
openharmony_ci
提交者:
Gitee
4月 21, 2023
浏览文件
操作
浏览文件
下载
差异文件
!1149 feat:修复测试用例
Merge pull request !1149 from zhangdengyu/muslUpdate0419
上级
a04ab13c
fa68ebfc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
5 deletion
+5
-5
testsuites/unittest/libc/sys/full/sys_test_025.cpp
testsuites/unittest/libc/sys/full/sys_test_025.cpp
+4
-4
testsuites/unittest/net/netdb/full/net_netdb_test_004.cpp
testsuites/unittest/net/netdb/full/net_netdb_test_004.cpp
+1
-1
未找到文件。
testsuites/unittest/libc/sys/full/sys_test_025.cpp
浏览文件 @
8452488b
...
@@ -85,22 +85,22 @@ STATIC INT32 TestCase1(void)
...
@@ -85,22 +85,22 @@ STATIC INT32 TestCase1(void)
INT32
ret
=
getgrgid_r
(
-
1
,
&
getNam1
,
buf
,
len
,
&
getNam2
);
INT32
ret
=
getgrgid_r
(
-
1
,
&
getNam1
,
buf
,
len
,
&
getNam2
);
ICUNIT_ASSERT_NOT_EQUAL
(
ret
,
0
,
ret
);
ICUNIT_ASSERT_NOT_EQUAL
(
ret
,
0
,
ret
);
ICUNIT_ASSERT_EQUAL
(
errno
,
E
AFNOSUPPOR
T
,
errno
);
ICUNIT_ASSERT_EQUAL
(
errno
,
E
NOEN
T
,
errno
);
errno
=
0
;
errno
=
0
;
groupRet
=
getgrgid
(
-
1
);
groupRet
=
getgrgid
(
-
1
);
ICUNIT_ASSERT_EQUAL
(
groupRet
,
0
,
groupRet
);
ICUNIT_ASSERT_EQUAL
(
groupRet
,
0
,
groupRet
);
ICUNIT_ASSERT_EQUAL
(
errno
,
E
AFNOSUPPOR
T
,
errno
);
ICUNIT_ASSERT_EQUAL
(
errno
,
E
NOEN
T
,
errno
);
errno
=
0
;
errno
=
0
;
groupRet
=
getgrnam
(
"null"
);
groupRet
=
getgrnam
(
"null"
);
ICUNIT_ASSERT_EQUAL
(
groupRet
,
nullptr
,
groupRet
);
ICUNIT_ASSERT_EQUAL
(
groupRet
,
nullptr
,
groupRet
);
ICUNIT_ASSERT_EQUAL
(
errno
,
E
AFNOSUPPOR
T
,
errno
);
ICUNIT_ASSERT_EQUAL
(
errno
,
E
NOEN
T
,
errno
);
errno
=
0
;
errno
=
0
;
ret
=
getgrnam_r
(
"null"
,
&
getData1
,
buf
,
len
,
&
getData2
);
ret
=
getgrnam_r
(
"null"
,
&
getData1
,
buf
,
len
,
&
getData2
);
ICUNIT_ASSERT_NOT_EQUAL
(
ret
,
0
,
ret
);
ICUNIT_ASSERT_NOT_EQUAL
(
ret
,
0
,
ret
);
ICUNIT_ASSERT_EQUAL
(
errno
,
E
AFNOSUPPOR
T
,
errno
);
ICUNIT_ASSERT_EQUAL
(
errno
,
E
NOEN
T
,
errno
);
errno
=
0
;
errno
=
0
;
return
0
;
return
0
;
...
...
testsuites/unittest/net/netdb/full/net_netdb_test_004.cpp
浏览文件 @
8452488b
...
@@ -63,7 +63,7 @@ static int GetHostByAddrTest(void)
...
@@ -63,7 +63,7 @@ static int GetHostByAddrTest(void)
errno
=
0
;
errno
=
0
;
ia
.
s_addr
=
inet_addr
(
"127.0.0.0"
);
ia
.
s_addr
=
inet_addr
(
"127.0.0.0"
);
addr
=
gethostbyaddr
(
&
ia
,
sizeof
ia
,
AF_INET
);
addr
=
gethostbyaddr
(
&
ia
,
sizeof
ia
,
AF_INET
);
ICUNIT_ASSERT_EQUAL
(
errno
,
E
INVAL
,
errno
);
ICUNIT_ASSERT_EQUAL
(
errno
,
E
NOENT
,
errno
);
RecoveryFileEnv
(
pathList
,
file_number
);
RecoveryFileEnv
(
pathList
,
file_number
);
return
ICUNIT_SUCCESS
;
return
ICUNIT_SUCCESS
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录