Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
7e54a908
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看板
未验证
提交
7e54a908
编写于
2月 22, 2022
作者:
O
openharmony_ci
提交者:
Gitee
2月 22, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2030 Modify xts of process
Merge pull request !2030 from 史凯/master
上级
c0e1bbed
65f93a82
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
18 deletion
+18
-18
compileruntime/process_lib_standard/src/main/js/test/Process.test.js
...ime/process_lib_standard/src/main/js/test/Process.test.js
+18
-18
未找到文件。
compileruntime/process_lib_standard/src/main/js/test/Process.test.js
浏览文件 @
7e54a908
...
...
@@ -1261,7 +1261,7 @@ describe('ChildProcessTest', function () {
* @tc.author: wangben
*/
it
(
'
testKill001
'
,
0
,
function
()
{
var
result
=
process
.
kill
(
123
,
3
)
var
result
=
process
.
kill
(
3
,
12
3
)
expect
(
result
).
assertEqual
(
false
)
})
...
...
@@ -1273,7 +1273,7 @@ describe('ChildProcessTest', function () {
*/
it
(
'
testKill002
'
,
0
,
function
()
{
var
pres
=
process
.
pid
var
result
=
process
.
kill
(
pres
,
23
)
var
result
=
process
.
kill
(
23
,
pres
)
expect
(
result
).
assertEqual
(
true
)
})
...
...
@@ -1285,7 +1285,7 @@ describe('ChildProcessTest', function () {
*/
it
(
'
testKill003
'
,
0
,
function
()
{
var
pres
=
process
.
pid
var
result
=
process
.
kill
(
pres
,
28
)
var
result
=
process
.
kill
(
28
,
pres
)
expect
(
result
).
assertEqual
(
true
)
})
...
...
@@ -1297,7 +1297,7 @@ describe('ChildProcessTest', function () {
*/
it
(
'
testKill004
'
,
0
,
function
()
{
var
pres
=
process
.
pid
var
result
=
process
.
kill
(
pres
,
17
)
var
result
=
process
.
kill
(
17
,
pres
)
expect
(
result
).
assertEqual
(
true
)
})
...
...
@@ -1308,7 +1308,7 @@ describe('ChildProcessTest', function () {
* @tc.author: wangben
*/
it
(
'
testKill005
'
,
0
,
function
()
{
var
result
=
process
.
kill
(
113
,
3
)
var
result
=
process
.
kill
(
3
,
11
3
)
expect
(
result
).
assertEqual
(
false
)
})
...
...
@@ -2123,7 +2123,7 @@ describe('ChildProcessTest', function () {
it
(
'
testGetstartrealtime004
'
,
0
,
function
()
{
for
(
var
i
=
0
;
i
<
1000
;
i
++
)
{
var
pri
=
process
.
get
PastCpu
time
()
var
pri
=
process
.
get
StartReal
time
()
if
(
pri
>
0
)
{
var
flag
=
new
Boolean
(
true
)
...
...
@@ -2133,15 +2133,15 @@ describe('ChildProcessTest', function () {
})
/**
* @tc.name: testGetpastCpu
t
ime001
* @tc.name: testGetpastCpu
T
ime001
* @tc.desc: Returns the cpu time (in milliseconds) from the time when the process starts to the current time.
* @tc.require: AR000GFB04
* @tc.author: liwenqiang
*/
it
(
'
testGetpastCpu
t
ime001
'
,
0
,
function
()
{
it
(
'
testGetpastCpu
T
ime001
'
,
0
,
function
()
{
for
(
var
i
=
0
;
i
<
10
;
i
++
)
{
var
pri
=
process
.
get
StartRealt
ime
()
var
pri
=
process
.
get
PastCpuT
ime
()
if
(
pri
>
0
)
{
var
flag
=
new
Boolean
(
true
)
...
...
@@ -2151,13 +2151,13 @@ describe('ChildProcessTest', function () {
})
/**
* @tc.name: testGetpastCpu
t
ime002
* @tc.name: testGetpastCpu
T
ime002
* @tc.desc: Returns the cpu time (in milliseconds) from the time when the process starts to the current time.
* @tc.require: AR000GFB04
* @tc.author: liwenqiang
*/
it
(
'
testGetpastCpu
t
ime002
'
,
0
,
function
()
{
var
pri
=
process
.
getPastCpu
t
ime
()
it
(
'
testGetpastCpu
T
ime002
'
,
0
,
function
()
{
var
pri
=
process
.
getPastCpu
T
ime
()
if
(
pri
>
0
)
{
var
flag
=
new
Boolean
(
true
)
...
...
@@ -2166,15 +2166,15 @@ describe('ChildProcessTest', function () {
})
/**
* @tc.name: testGetpastCpu
t
ime003
* @tc.name: testGetpastCpu
T
ime003
* @tc.desc: Returns the cpu time (in milliseconds) from the time when the process starts to the current time.
* @tc.require: AR000GFB04
* @tc.author: liwenqiang
*/
it
(
'
testGetpastCpu
t
ime003
'
,
0
,
function
()
{
it
(
'
testGetpastCpu
T
ime003
'
,
0
,
function
()
{
for
(
var
i
=
0
;
i
<
100
;
i
++
)
{
var
pri
=
process
.
getPastCpu
t
ime
()
var
pri
=
process
.
getPastCpu
T
ime
()
if
(
pri
>
0
)
{
var
flag
=
new
Boolean
(
true
)
...
...
@@ -2184,15 +2184,15 @@ describe('ChildProcessTest', function () {
})
/**
* @tc.name: testGetpastCpu
t
ime004
* @tc.name: testGetpastCpu
T
ime004
* @tc.desc: Returns the cpu time (in milliseconds) from the time when the process starts to the current time.
* @tc.require: AR000GFB04
* @tc.author: liwenqiang
*/
it
(
'
testGetpastCpu
t
ime004
'
,
0
,
function
()
{
it
(
'
testGetpastCpu
T
ime004
'
,
0
,
function
()
{
for
(
var
i
=
0
;
i
<
1000
;
i
++
)
{
var
pri
=
process
.
getPastCpu
t
ime
()
var
pri
=
process
.
getPastCpu
T
ime
()
if
(
pri
>
0
)
{
var
flag
=
new
Boolean
(
true
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录