Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
53bbaefd
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
53bbaefd
编写于
3月 21, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 21, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2695 【kernel_lite】【master】修改kernel_lite用例告警问题
Merge pull request !2695 from limeng/kernel_lite_20220321_01_master
上级
f845f04f
945a8571
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
4 addition
and
4 deletion
+4
-4
kernel_lite/fs_posix/src/FsFcntlTest.cpp
kernel_lite/fs_posix/src/FsFcntlTest.cpp
+2
-2
kernel_lite/net_posix/src/ActsNetTest.cpp
kernel_lite/net_posix/src/ActsNetTest.cpp
+1
-1
kernel_lite/process_posix/src/PidTest.cpp
kernel_lite/process_posix/src/PidTest.cpp
+1
-1
未找到文件。
kernel_lite/fs_posix/src/FsFcntlTest.cpp
浏览文件 @
53bbaefd
...
@@ -231,7 +231,7 @@ HWTEST_F(FileSystemTest, testFallocate, Function | MediumTest | Level2)
...
@@ -231,7 +231,7 @@ HWTEST_F(FileSystemTest, testFallocate, Function | MediumTest | Level2)
LOG
(
"> vfsBufNew.f_bfree = %lu"
,
vfsBufNew
.
f_bfree
);
LOG
(
"> vfsBufNew.f_bfree = %lu"
,
vfsBufNew
.
f_bfree
);
int
ret
=
strcmp
(
TOP_DIR
,
"sdcard"
);
int
ret
=
strcmp
(
TOP_DIR
,
"sdcard"
);
if
(
ret
=
0
)
{
if
(
ret
=
=
0
)
{
int
bNumExpect
=
file_size
/
vfsBufNew
.
f_bsize
;
int
bNumExpect
=
file_size
/
vfsBufNew
.
f_bsize
;
int
bNum
=
vfsBufOld
.
f_bfree
-
vfsBufNew
.
f_bfree
;
int
bNum
=
vfsBufOld
.
f_bfree
-
vfsBufNew
.
f_bfree
;
LOG
(
"> bNumExpect = %d"
,
bNumExpect
);
LOG
(
"> bNumExpect = %d"
,
bNumExpect
);
...
@@ -277,7 +277,7 @@ HWTEST_F(FileSystemTest, testFallocateSmallSize, Function | MediumTest | Level2)
...
@@ -277,7 +277,7 @@ HWTEST_F(FileSystemTest, testFallocateSmallSize, Function | MediumTest | Level2)
LOG
(
"> vfsBufNew.f_bfree = %lu"
,
vfsBufNew
.
f_bfree
);
LOG
(
"> vfsBufNew.f_bfree = %lu"
,
vfsBufNew
.
f_bfree
);
int
ret
=
strcmp
(
TOP_DIR
,
"sdcard"
);
int
ret
=
strcmp
(
TOP_DIR
,
"sdcard"
);
if
(
ret
=
0
)
{
if
(
ret
=
=
0
)
{
int
bNumExpect
=
file_size
/
vfsBufNew
.
f_bsize
;
int
bNumExpect
=
file_size
/
vfsBufNew
.
f_bsize
;
int
bNum
=
vfsBufOld
.
f_bfree
-
vfsBufNew
.
f_bfree
;
int
bNum
=
vfsBufOld
.
f_bfree
-
vfsBufNew
.
f_bfree
;
LOG
(
"> bNumExpect = %d"
,
bNumExpect
);
LOG
(
"> bNumExpect = %d"
,
bNumExpect
);
...
...
kernel_lite/net_posix/src/ActsNetTest.cpp
浏览文件 @
53bbaefd
...
@@ -1235,7 +1235,7 @@ HWTEST_F(ActsNetTest, testIoctlIfhwAddr, Function | MediumTest | Level2)
...
@@ -1235,7 +1235,7 @@ HWTEST_F(ActsNetTest, testIoctlIfhwAddr, Function | MediumTest | Level2)
ASSERT_EQ
(
0
,
ret
)
<<
"ioctl fail[SIOCGIFCONF], errinfo["
<<
strerror
(
errno
)
<<
"]"
;
ASSERT_EQ
(
0
,
ret
)
<<
"ioctl fail[SIOCGIFCONF], errinfo["
<<
strerror
(
errno
)
<<
"]"
;
char
rst1
[
18
];
char
rst1
[
18
];
char
rst2
[
18
];
char
*
macPtr
=
nullptr
;
char
*
macPtr
=
nullptr
;
struct
ifreq
ifrTmp
=
{
0
};
struct
ifreq
ifrTmp
=
{
0
};
struct
sockaddr_in
*
addr
=
nullptr
;
struct
sockaddr_in
*
addr
=
nullptr
;
...
...
kernel_lite/process_posix/src/PidTest.cpp
浏览文件 @
53bbaefd
...
@@ -93,7 +93,7 @@ HWTEST_F(PidTest, testOrphanProcess, Function | MediumTest | Level1)
...
@@ -93,7 +93,7 @@ HWTEST_F(PidTest, testOrphanProcess, Function | MediumTest | Level1)
if
(
pPid
!=
1
)
{
if
(
pPid
!=
1
)
{
LOG
(
"getppid orphaned process fail, expect:1, but get:%d"
,
pPid
);
LOG
(
"getppid orphaned process fail, expect:1, but get:%d"
,
pPid
);
// transfer result to main process
// transfer result to main process
shmAddr
[
0
]
=
=
retFail
;
shmAddr
[
0
]
=
retFail
;
}
}
shmAddr
[
1
]
=
2
;
shmAddr
[
1
]
=
2
;
LOG
(
"child child exit %d"
,
shmAddr
[
1
]);
LOG
(
"child child exit %d"
,
shmAddr
[
1
]);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录