Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
35db94fc
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
35db94fc
编写于
9月 25, 2021
作者:
O
openharmony_ci
提交者:
Gitee
9月 25, 2021
浏览文件
操作
浏览文件
下载
差异文件
!734 modify process xts codecheck
Merge pull request !734 from clearme777/master
上级
356b75fb
5b0b778f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
18 deletion
+16
-18
compileruntime/process_lib_standard/hap/entry-debug-rich-unsigned.hap
...me/process_lib_standard/hap/entry-debug-rich-unsigned.hap
+0
-0
compileruntime/process_lib_standard/project/entry/src/main/js/test/Process.test.js
...b_standard/project/entry/src/main/js/test/Process.test.js
+16
-18
未找到文件。
compileruntime/process_lib_standard/hap/entry-debug-rich-unsigned.hap
浏览文件 @
35db94fc
无法预览此类型文件
compileruntime/process_lib_standard/project/entry/src/main/js/test/Process.test.js
浏览文件 @
35db94fc
...
...
@@ -136,8 +136,7 @@ describe('ChildProcessTest', function () {
var
child
=
process
.
runCmd
(
'
ls; sleep 5;
'
)
child
.
wait
()
var
pid_
=
child
.
pid
const
boolean
=
new
Boolean
(
true
)
expect
(
pid_
>
0
).
assertEqual
(
boolean
)
expect
(
pid_
>
0
).
assertEqual
(
true
)
})
// childprocess ppid test
...
...
@@ -145,8 +144,7 @@ describe('ChildProcessTest', function () {
var
child
=
process
.
runCmd
(
'
ls; sleep 5;
'
)
var
status
=
child
.
wait
()
var
ppid_
=
child
.
ppid
const
boolean
=
new
Boolean
(
true
)
expect
(
ppid_
>
0
).
assertEqual
(
boolean
)
expect
(
ppid_
>
0
).
assertEqual
(
true
)
})
// childprocess kill test
...
...
@@ -232,7 +230,7 @@ describe('ChildProcessTest', function () {
var
that
=
new
process
.
Process
()
var
result
=
that
.
getUid
if
(
result
>
0
)
{
var
flag
=
new
Boolean
(
true
)
var
flag
=
true
}
expect
(
flag
).
assertEqual
(
true
)
})
...
...
@@ -243,7 +241,7 @@ describe('ChildProcessTest', function () {
var
result
=
that
.
getUid
if
(
result
!=
null
)
{
if
(
result
>
0
)
{
var
flag
=
new
Boolean
(
true
)
var
flag
=
true
}
expect
(
flag
).
assertEqual
(
true
)
}
...
...
@@ -255,7 +253,7 @@ describe('ChildProcessTest', function () {
var
that
=
new
process
.
Process
()
var
result
=
that
.
getGid
if
(
result
>
0
)
{
var
flag
=
new
Boolean
(
true
)
var
flag
=
true
}
expect
(
flag
).
assertEqual
(
true
)
})
...
...
@@ -266,7 +264,7 @@ describe('ChildProcessTest', function () {
var
result
=
that
.
getGid
if
(
result
!=
null
)
{
if
(
result
>
0
)
{
var
flag
=
new
Boolean
(
true
)
var
flag
=
true
}
expect
(
flag
).
assertEqual
(
true
)
}
...
...
@@ -278,7 +276,7 @@ describe('ChildProcessTest', function () {
var
that
=
new
process
.
Process
()
var
result
=
that
.
getEuid
if
(
result
>
0
)
{
var
flag
=
new
Boolean
(
true
)
var
flag
=
true
}
expect
(
flag
).
assertEqual
(
true
)
})
...
...
@@ -289,7 +287,7 @@ describe('ChildProcessTest', function () {
var
result
=
that
.
getEuid
if
(
result
!=
null
)
{
if
(
result
>
0
)
{
var
flag
=
new
Boolean
(
true
)
var
flag
=
true
}
expect
(
flag
).
assertEqual
(
true
)
}
...
...
@@ -301,7 +299,7 @@ describe('ChildProcessTest', function () {
var
that
=
new
process
.
Process
()
var
result
=
that
.
getEgid
if
(
result
>
0
)
{
var
flag
=
new
Boolean
(
true
)
var
flag
=
true
}
expect
(
flag
).
assertEqual
(
true
)
})
...
...
@@ -312,7 +310,7 @@ describe('ChildProcessTest', function () {
var
result
=
that
.
getEgid
if
(
result
!=
null
)
{
if
(
result
>
0
)
{
var
flag
=
new
Boolean
(
true
)
var
flag
=
true
}
expect
(
flag
).
assertEqual
(
true
)
}
...
...
@@ -325,7 +323,7 @@ describe('ChildProcessTest', function () {
var
result
=
that
.
getGroups
var
len
=
result
.
length
if
(
len
>
0
)
{
var
flag
=
new
Boolean
(
true
)
var
flag
=
true
}
expect
(
flag
).
assertEqual
(
true
)
})
...
...
@@ -337,7 +335,7 @@ describe('ChildProcessTest', function () {
if
(
result
!=
null
)
{
var
len
=
result
.
length
if
(
len
>
0
)
{
var
flag
=
new
Boolean
(
true
)
var
flag
=
true
}
expect
(
flag
).
assertEqual
(
true
)
}
...
...
@@ -433,7 +431,7 @@ describe('ChildProcessTest', function () {
var
that
=
new
process
.
Process
()
var
result
=
that
.
getPid
if
(
result
>
0
)
{
var
flag
=
new
Boolean
(
true
)
var
flag
=
true
}
expect
(
flag
).
assertEqual
(
true
)
})
...
...
@@ -444,7 +442,7 @@ describe('ChildProcessTest', function () {
{
var
result
=
that
.
getPid
if
(
result
>
0
)
{
var
flag
=
new
Boolean
(
true
)
var
flag
=
true
}
expect
(
flag
).
assertEqual
(
true
)
}
...
...
@@ -455,7 +453,7 @@ describe('ChildProcessTest', function () {
var
that
=
new
process
.
Process
()
var
result
=
that
.
getPpid
if
(
result
>
0
)
{
var
flag
=
new
Boolean
(
true
)
var
flag
=
true
}
expect
(
flag
).
assertEqual
(
true
)
})
...
...
@@ -466,7 +464,7 @@ describe('ChildProcessTest', function () {
{
var
result
=
that
.
getPpid
if
(
result
>
0
)
{
var
flag
=
new
Boolean
(
true
)
var
flag
=
true
}
expect
(
flag
).
assertEqual
(
true
)
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录