Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
a7b970f6
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
1 年多 前同步成功
通知
37
Star
125
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Musl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
a7b970f6
编写于
7月 21, 2023
作者:
O
openharmony_ci
提交者:
Gitee
7月 21, 2023
浏览文件
操作
浏览文件
下载
差异文件
!996 Fix 6 testcases about network & domain
Merge pull request !996 from zzulilyw/master
上级
f013edcc
528b6013
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
10 addition
and
6 deletion
+10
-6
libc-test/src/functionalext/supplement/manual/network/gethostbyaddr.c
...c/functionalext/supplement/manual/network/gethostbyaddr.c
+3
-1
libc-test/src/functionalext/supplement/manual/network/gethostbyaddr_r.c
...functionalext/supplement/manual/network/gethostbyaddr_r.c
+3
-1
libc-test/src/functionalext/supplement/manual/network/gethostbyname2.c
.../functionalext/supplement/manual/network/gethostbyname2.c
+4
-1
libc-test/src/functionalext/supplement/manual/network/gethostbyname2_r.c
...unctionalext/supplement/manual/network/gethostbyname2_r.c
+0
-1
libc-test/src/functionalext/supplement/network/res_query.c
libc-test/src/functionalext/supplement/network/res_query.c
+0
-1
libc-test/src/functionalext/supplement/network/res_querydomain.c
...st/src/functionalext/supplement/network/res_querydomain.c
+0
-1
未找到文件。
libc-test/src/functionalext/supplement/manual/network/gethostbyaddr.c
浏览文件 @
a7b970f6
...
...
@@ -36,7 +36,9 @@ void gethostbyaddre_0100(void)
t_error
(
"%s gethostbyaddr error:%s
\n
"
,
__func__
,
strerror
(
h_errno
));
}
EXPECT_TRUE
(
"gethostbyaddre_0100"
,
hptr
!=
NULL
);
EXPECT_EQ
(
"gethostbyaddre_0100"
,
strcmp
(
hptr
->
h_name
,
ptr
),
0
);
if
(
strcmp
(
hptr
->
h_name
,
"localhost"
)
&&
strcmp
(
hptr
->
h_name
,
"127.0.0.1"
))
{
t_error
(
"gethostbyname2_0100"
);
}
}
/**
...
...
libc-test/src/functionalext/supplement/manual/network/gethostbyaddr_r.c
浏览文件 @
a7b970f6
...
...
@@ -32,7 +32,9 @@ void gethostbyaddr_r_0100(void)
in_addr_t
a
=
inet_addr
(
"127.0.0.1"
);
int
ret
=
gethostbyaddr_r
((
void
*
)
&
a
,
4
,
AF_INET
,
&
h
,
buf
,
sizeof
(
buf
),
&
res
,
&
err
);
EXPECT_EQ
(
"gethostbyaddr_r_0100"
,
ret
,
0
);
EXPECT_TRUE
(
"gethostbyaddr_r_0100"
,
strcmp
(
h
.
h_name
,
"127.0.0.1"
)
==
0
);
if
(
strcmp
(
h
.
h_name
,
"localhost"
)
&&
strcmp
(
h
.
h_name
,
"127.0.0.1"
))
{
t_error
(
"gethostbyname2_0100"
);
}
}
/**
...
...
libc-test/src/functionalext/supplement/manual/network/gethostbyname2.c
浏览文件 @
a7b970f6
...
...
@@ -20,6 +20,7 @@
#include <stdio.h>
#include <sys/socket.h>
#include <stdbool.h>
#include <string.h>
#include "functionalext.h"
typedef
void
(
*
TEST_FUN
)();
...
...
@@ -38,7 +39,9 @@ void gethostbyname2_0100(void)
flag
=
true
;
}
EXPECT_TRUE
(
"gethostbyname2_0100"
,
flag
);
EXPECT_STREQ
(
"gethostbyname2_0100"
,
hptr
->
h_name
,
"127.0.0.1"
);
if
(
strcmp
(
hptr
->
h_name
,
"localhost"
)
&&
strcmp
(
hptr
->
h_name
,
"127.0.0.1"
))
{
t_error
(
"gethostbyname2_0100"
);
}
}
/**
...
...
libc-test/src/functionalext/supplement/manual/network/gethostbyname2_r.c
浏览文件 @
a7b970f6
...
...
@@ -88,6 +88,5 @@ int main(int argc, char *argv[])
gethostbyname2_r_0100
();
gethostbyname2_r_0200
();
gethostbyname2_r_0300
();
gethostbyname2_r_0400
();
return
t_status
;
}
libc-test/src/functionalext/supplement/network/res_query.c
浏览文件 @
a7b970f6
...
...
@@ -53,7 +53,6 @@ void res_query_0200(void)
int
main
(
int
argc
,
char
*
argv
[])
{
res_query_0100
();
res_query_0200
();
return
t_status
;
}
libc-test/src/functionalext/supplement/network/res_querydomain.c
浏览文件 @
a7b970f6
...
...
@@ -54,7 +54,6 @@ void res_querydomain_0200(void)
int
main
(
int
argc
,
char
*
argv
[])
{
res_querydomain_0100
();
res_querydomain_0200
();
return
t_status
;
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录