Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
a0a70872
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看板
提交
a0a70872
编写于
7月 26, 2023
作者:
T
tanglizhen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
移除process部分用例适配跨平台接口调整
Signed-off-by:
N
tanglizhen
<
tanglizhen2@huawei.com
>
上级
9b7678a4
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
193 deletion
+0
-193
commonlibrary/crossplatform/commonlibraryprocessetstest/src/main/ets/test/Process.test.ets
...nlibraryprocessetstest/src/main/ets/test/Process.test.ets
+0
-193
未找到文件。
commonlibrary/crossplatform/commonlibraryprocessetstest/src/main/ets/test/Process.test.ets
浏览文件 @
a0a70872
...
...
@@ -521,116 +521,6 @@ describe('ProcessManager', function () {
describe('ProcessTest', function () {
/**
* @tc.number:TEST_EGID_001
* @tc.name: testEgid001
* @tc.desc: Returns the numeric valid group ID of the process
* @tc.size: MediumTest
* @tc.type: Constant
* @tc.level: level 2
*/
it('testEgid001', 0, function () {
let result = process.egid;
if (result > 0) {
var flag = true;
}
expect(flag).assertEqual(true);
})
/**
* @tc.number:TEST_EGID_002
* @tc.name: testEgid002
* @tc.desc: Returns the numeric valid group ID of the process
* @tc.size: MediumTest
* @tc.type: Constant
* @tc.level: level 2
*/
it('testEgid002', 0, function () {
for (let i = 0; i < 3; i++) {
let result = process.egid;
if (result != null) {
if (result > 0) {
var flag = true;
}
expect(flag).assertEqual(true);
}
}
})
/**
* @tc.number:TEST_EUID_001
* @tc.name: testEuid001
* @tc.desc: Return the numeric valid user identity of the process
* @tc.size: MediumTest
* @tc.type: Constant
* @tc.level: level 2
*/
it('testEuid001', 0, function () {
let result = process.euid;
if (result > 0) {
var flag = true;
}
expect(flag).assertEqual(true);
})
/**
* @tc.number:TEST_EUID_002
* @tc.name: testEuid002
* @tc.desc: Return the numeric valid user identity of the process
* @tc.size: MediumTest
* @tc.type: Constant
* @tc.level: level 2
*/
it('testUid002', 0, function () {
for (let i = 0; i < 3; i++) {
let result = process.euid;
if (result != null) {
if (result > 0) {
var flag = true;
}
expect(flag).assertEqual(true);
}
}
})
/**
* @tc.number:TEST_GID_001
* @tc.name: testGid001
* @tc.desc: Return the numeric group if of the process
* @tc.size: MediumTest
* @tc.type: Constant
* @tc.level: level 2
*/
it('testGid001', 0, function () {
let result = process.gid;
if (result > 0) {
var flag = true;
}
expect(flag).assertEqual(true);
})
/**
* @tc.number:TEST_GID_002
* @tc.name: testGid002
* @tc.desc: Return the numeric group if of the process
* @tc.size: MediumTest
* @tc.type: Constant
* @tc.level: level 2
*/
it('testGid002', 0, function () {
for (let i = 0; i < 3; i++) {
let result = process.gid;
if (result != null) {
if (result > 0) {
var flag = true;
}
expect(flag).assertEqual(true);
}
}
})
/**
* @tc.number:TEST_Uid_001
...
...
@@ -728,22 +618,6 @@ describe('ProcessTest', function () {
}
})
/**
* @tc.number:TEST_GROUPS_001
* @tc.name: testGroups001
* @tc.desc: Return an array with supplementary group id
* @tc.size: MediumTest
* @tc.type: Constant
* @tc.level: level 2
*/
it('testGroups001', 0, function () {
let result = process.groups;
if (result != null) {
var flag = true;
}
expect(flag).assertEqual(true);
})
/**
* @tc.number:TEST_PID_001
...
...
@@ -832,42 +706,6 @@ describe('ProcessTest', function () {
expect(flag).assertEqual(true);
}
})
/**
* @tc.number:TEST_PPID_001
* @tc.name: testPpid001
* @tc.desc: Return ppid is The pid of the current child process
* @tc.size: MediumTest
* @tc.type: Constant
* @tc.level: level 2
*/
it('testTid001', 0, function () {
let pres = process.ppid;
if (pres > 0) {
var flag = new Boolean(true);
}
expect(Boolean(flag)).assertEqual(true);
})
/**
* @tc.number:TEST_PPID_002
* @tc.name: testPpid002
* @tc.desc: Return ppid is The pid of the current child process
* @tc.size: MediumTest
* @tc.type: Constant
* @tc.level: level 2
*/
it('testPpid002', 0, function () {
for (let i = 0; i < 8; i++) {
let result = process.ppid;
if (result > 0) {
var flag = true;
}
expect(flag).assertEqual(true);
}
})
/**
* @tc.number:TEST_TID_001
...
...
@@ -1135,37 +973,6 @@ describe('ProcessTest', function () {
expect(Boolean(flag)).assertEqual(true);
}
})
/**
* @tc.number:TEST_CWD_001
* @tc.name: testCwd001
* @tc.desc: Return the current work directory
* @tc.size: MediumTest
* @tc.type: Method
* @tc.level: level 2
*/
it('testCwd001', 0, function () {
let result=process.cwd();
expect(result!=null).assertTrue();
})
/**
* @tc.number:TEST_CHDIR_001
* @tc.name: testChdir001
* @tc.desc: Change current directory
* @tc.size: MediumTest
* @tc.type: Method
* @tc.level: level 2
*/
it('testChdir001', 0, function () {
let result=process.cwd();
let result1=process.chdir(result);
expect(result!=null).assertTrue();
})
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录