Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
5a0ede7c
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看板
提交
5a0ede7c
编写于
12月 16, 2021
作者:
Z
zhuqingxi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update hicollie faultlogger testcases
Signed-off-by:
N
zhuqingxi
<
zhuqingxi@huawei.com
>
上级
075f1601
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
6 deletion
+6
-6
hiviewdfx/faultloggertest/faultloggercpptest/faultloggertest.cpp
...fx/faultloggertest/faultloggercpptest/faultloggertest.cpp
+2
-2
hiviewdfx/hicollietest/hicolliecpptest/HiCollieCppTest.cpp
hiviewdfx/hicollietest/hicolliecpptest/HiCollieCppTest.cpp
+4
-4
未找到文件。
hiviewdfx/faultloggertest/faultloggercpptest/faultloggertest.cpp
浏览文件 @
5a0ede7c
...
@@ -130,9 +130,9 @@ HWTEST_F(faultloggertest, Faultlogger_Faultdetect1, Function|MediumTest|Level1)
...
@@ -130,9 +130,9 @@ HWTEST_F(faultloggertest, Faultlogger_Faultdetect1, Function|MediumTest|Level1)
string
fileinfo
;
string
fileinfo
;
fileinfo
=
ReadFile
(
"/data/log/faultlog/temp/"
+
faultloggerfile
);
fileinfo
=
ReadFile
(
"/data/log/faultlog/temp/"
+
faultloggerfile
);
std
::
vector
<
std
::
string
>
para
=
{
"Pid:"
+
to_string
(
pid
),
"Uid:0"
,
std
::
vector
<
std
::
string
>
para
=
{
"Pid:"
+
to_string
(
pid
),
"Uid:0"
,
"Process name:"
,
"/data/local/tmp/
faultloggert
est"
,
"Process name:"
,
"/data/local/tmp/
ActsFaultLoggerT
est"
,
"Reason:Signal:SIGILL"
,
"Fault thread Info:"
,
"Reason:Signal:SIGILL"
,
"Fault thread Info:"
,
"Tid:"
+
to_string
(
pid
),
"Name:
faultloggertest
"
};
"Tid:"
+
to_string
(
pid
),
"Name:
ActsFaultLogger
"
};
if
(
!
fileinfo
.
empty
())
{
if
(
!
fileinfo
.
empty
())
{
result
=
CheckInfo
(
para
,
fileinfo
);
result
=
CheckInfo
(
para
,
fileinfo
);
}
else
{
}
else
{
...
...
hiviewdfx/hicollietest/hicolliecpptest/HiCollieCppTest.cpp
浏览文件 @
5a0ede7c
...
@@ -156,7 +156,7 @@ HWTEST_F(HiCollieCppTest, Xcollie_watchdog_test, Function|MediumTest|Level1) {
...
@@ -156,7 +156,7 @@ HWTEST_F(HiCollieCppTest, Xcollie_watchdog_test, Function|MediumTest|Level1) {
bool
result
=
false
;
bool
result
=
false
;
sleep
(
90
);
sleep
(
90
);
std
::
vector
<
std
::
string
>
cmdret
;
std
::
vector
<
std
::
string
>
cmdret
;
cmd
=
"ps -A |grep
HiCollieCppTest
"
;
cmd
=
"ps -A |grep
ActsHiCollieCpp
"
;
unsigned
long
cmdretlen
;
unsigned
long
cmdretlen
;
cmdretlen
=
ExecCmdWithRet
(
cmd
,
cmdret
);
cmdretlen
=
ExecCmdWithRet
(
cmd
,
cmdret
);
if
(
cmdretlen
==
1
)
{
if
(
cmdretlen
==
1
)
{
...
@@ -183,7 +183,7 @@ HWTEST_F(HiCollieCppTest, Xcollie_watchdog_test1, Function|MediumTest|Level1) {
...
@@ -183,7 +183,7 @@ HWTEST_F(HiCollieCppTest, Xcollie_watchdog_test1, Function|MediumTest|Level1) {
DoXCollieTest
();
DoXCollieTest
();
sleep
(
90
);
sleep
(
90
);
std
::
vector
<
std
::
string
>
cmdret
;
std
::
vector
<
std
::
string
>
cmdret
;
cmd
=
"ps -A |grep
HiCollieCppTest
"
;
cmd
=
"ps -A |grep
ActsHiCollieCpp
"
;
unsigned
long
cmdretlen
;
unsigned
long
cmdretlen
;
cmdretlen
=
ExecCmdWithRet
(
cmd
,
cmdret
);
cmdretlen
=
ExecCmdWithRet
(
cmd
,
cmdret
);
if
(
cmdretlen
==
1
)
{
if
(
cmdretlen
==
1
)
{
...
@@ -210,7 +210,7 @@ HWTEST_F(HiCollieCppTest, Xcollie_watchdog_test2, Function|MediumTest|Level1) {
...
@@ -210,7 +210,7 @@ HWTEST_F(HiCollieCppTest, Xcollie_watchdog_test2, Function|MediumTest|Level1) {
bool
result
=
false
;
bool
result
=
false
;
sleep
(
110
);
sleep
(
110
);
std
::
vector
<
std
::
string
>
cmdret
;
std
::
vector
<
std
::
string
>
cmdret
;
cmd
=
"ps -A |grep
HiCollieCppTest
"
;
cmd
=
"ps -A |grep
ActsHiCollieCpp
"
;
unsigned
long
cmdretlen
;
unsigned
long
cmdretlen
;
cmdretlen
=
ExecCmdWithRet
(
cmd
,
cmdret
);
cmdretlen
=
ExecCmdWithRet
(
cmd
,
cmdret
);
if
(
cmdretlen
==
1
)
{
if
(
cmdretlen
==
1
)
{
...
@@ -314,4 +314,4 @@ HWTEST_F(HiCollieCppTest, Xcollie_interface_test6, Function|MediumTest|Level1)
...
@@ -314,4 +314,4 @@ HWTEST_F(HiCollieCppTest, Xcollie_interface_test6, Function|MediumTest|Level1)
{
{
int
id
=
XCollie
::
GetInstance
().
SetTimer
(
"Timer"
,
5
,
nullptr
,
nullptr
,
XCOLLIE_FLAG_NOOP
+
100
);
int
id
=
XCollie
::
GetInstance
().
SetTimer
(
"Timer"
,
5
,
nullptr
,
nullptr
,
XCOLLIE_FLAG_NOOP
+
100
);
ASSERT_TRUE
(
id
!=
INVALID_ID
);
ASSERT_TRUE
(
id
!=
INVALID_ID
);
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录