From ea9cb811e05a44c191998294f5c626d439a0a55d Mon Sep 17 00:00:00 2001 From: xllify Date: Tue, 26 Apr 2022 09:14:46 +0800 Subject: [PATCH] Modify the master branch process xts use case Modify the corresponding questions according to the rules issue:https://gitee.com/openharmony/xts_acts/issues/I54OHP Signed-off-by: xllify --- .../src/main/js/test/Process.test.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/compileruntime/process_lib_standard/src/main/js/test/Process.test.js b/compileruntime/process_lib_standard/src/main/js/test/Process.test.js index cb4e5dbb4..be44d5a06 100644 --- a/compileruntime/process_lib_standard/src/main/js/test/Process.test.js +++ b/compileruntime/process_lib_standard/src/main/js/test/Process.test.js @@ -510,6 +510,9 @@ describe('ChildProcessTest', function () { */ it('SUB_Runtime_JSAPI_SR000GGR3G-009', 0, function () { let isorno = process.is64Bit() + if(isorno) { + expect(isorno).assertEqual(ture) + } expect(isorno).assertEqual(false) }) @@ -523,6 +526,9 @@ describe('ChildProcessTest', function () { for(let i=0; i<3; i++) { let isorno = process.is64Bit() + if(isorno) { + expect(isorno).assertEqual(ture) + } expect(isorno).assertEqual(false) } }) @@ -537,6 +543,9 @@ describe('ChildProcessTest', function () { for(let i=0; i<5; i++) { let isorno = process.is64Bit() + if(isorno) { + expect(isorno).assertEqual(ture) + } expect(isorno).assertEqual(false) } }) @@ -718,7 +727,7 @@ describe('ChildProcessTest', function () { for(let i=0; i<6; i++) { let pri = process.getStartRealtime() - if(pri > 0) + if(pri !== null) { var flag = new Boolean(true) } -- GitLab