From a0a708722b1d2fd53eb15a7978fe52bd8542bab4 Mon Sep 17 00:00:00 2001 From: tanglizhen Date: Wed, 26 Jul 2023 11:17:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4process=E9=83=A8=E5=88=86?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E9=80=82=E9=85=8D=E8=B7=A8=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tanglizhen --- .../src/main/ets/test/Process.test.ets | 193 ------------------ 1 file changed, 193 deletions(-) diff --git a/commonlibrary/crossplatform/commonlibraryprocessetstest/src/main/ets/test/Process.test.ets b/commonlibrary/crossplatform/commonlibraryprocessetstest/src/main/ets/test/Process.test.ets index 6bdfc78b4..de50bdcda 100755 --- a/commonlibrary/crossplatform/commonlibraryprocessetstest/src/main/ets/test/Process.test.ets +++ b/commonlibrary/crossplatform/commonlibraryprocessetstest/src/main/ets/test/Process.test.ets @@ -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(); - }) /** -- GitLab