From 5b0b778f44a72c12fd9cb617b4675102ad2591d6 Mon Sep 17 00:00:00 2001 From: lifansheng Date: Sat, 25 Sep 2021 14:36:43 +0800 Subject: [PATCH] Signed-off-by: lifansheng On branch master Your branch is up to date with 'origin/master'. Changes to be committed: modified: compileruntime/process_lib_standard/hap/entry-debug-rich-unsigned.hap modified: compileruntime/process_lib_standard/project/entry/src/main/js/test/Process.test.js --- .../hap/entry-debug-rich-unsigned.hap | Bin 581566 -> 581275 bytes .../entry/src/main/js/test/Process.test.js | 34 +++++++++--------- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/compileruntime/process_lib_standard/hap/entry-debug-rich-unsigned.hap b/compileruntime/process_lib_standard/hap/entry-debug-rich-unsigned.hap index 3891c4340d7f46cc921a66b8109d8abda209f1f6..e786f141ff796769c30dd607f8a2c113ca26f9a3 100644 GIT binary patch delta 10130 zcmd5?2Uycr*H2jY8U#U^vLcQkL=v`$gMS7aWQtN3BZV*|5RhSMaCOnvI$b<~O$ z>xcu3?c3J2ii+d4uUc2@Q*EoQ*3tI;wBNZmj6fauwe|UU9xf;Mf9^TIvv2+nA2ttM zv43Fg9R3`WIi_>Wc9>7TX;KB!Xs9Y}GWaN~F)sxA5g75tky2P7#rdi58#evkK4!zCfhP z&MOvXW@U@W{JF?pKeY(8^7&z8{tDzsS_)7vePS^x;ahg_g^9>v4f=uDPD59T&3hJ@ zTrWlbT~3VF!U;Q(wos+g2!q0e?JD4?a}{#YpD#lT`Q%JB@+H4aM|Q+@1_~sj^dM^d z4CF~v709NGyhRm8^8AhE=|NtJ2^m#~`jVA1P#*?c|IrLo(~dYRI|tNK(+HS0OkY=n z*6|GoI34I_cGk~Ew)z)zpv78Llv$9YE*1LumQ|Lu`NU=>sy1muqzB#$e0}X))X?E3 zc0A=}blajGwx$jtea@TcfdN}DjXFnIrqY%P4Eh$%M>C0HF>)Zu3t*YI2wA#@2_+I? zcAmO0M^jpytYi0aOf$}w`L)7p;BGQzZar#a(w~nZK?&6FD^z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OL+>}VCu59rhwYd=+VzKx7t{FKCI5`@Tv0#2X7=KN^S-c; z`cPLqS!(P)^WNCHFH5G5KRn!(dm}YmDJ+>(vvFpi*%{rPu+WR!fB9z9J8Px6#@RP> zN1u*darQuC&(W_X_WM`rPhlx%uBmRH*L}P+ZSdr>rp#G|x}Aw%*s9lmtvcH9!(FmH z=GBI=ix+)+C3K%j#^8;I{}Ao_a_;jEQ|`Jut=O=s#G|oRdJXGl_x$>vl`h8k?5bCr z3RW$4zjt%M@5jFP`TXYQV-e*|X&xso$Sr%{m@n#mZPtdgphLrhb{+b>H2wXmkM{+r zKMenU(6z1Gd=;$`5w-* zaa?6?;XNyA*3UKqWZWdZFJU#0Opx$)=A%>_*oYjX_3oCr5HF*Y+Yjg-iZg_?^E zG5y4^hwS&Z9kk|i@y*hKx1-j*DY>=n%Df9fb9%WN3&$QgjomUfyqxn|=*I~S&clt~ zoa(hccf#c@F7>AWp53G0JI2uEgY=G{;B%%Oen3p_T*fi(U49S*D_j2xk0JK+AXEDD zATsL;7P?VFt$*hdai^0EIdTR27+)SkZoo=+dZ0Oix}qq3uHW3mjD0& diff --git a/compileruntime/process_lib_standard/project/entry/src/main/js/test/Process.test.js b/compileruntime/process_lib_standard/project/entry/src/main/js/test/Process.test.js index 6e2dc01e9..63a957bdf 100644 --- a/compileruntime/process_lib_standard/project/entry/src/main/js/test/Process.test.js +++ b/compileruntime/process_lib_standard/project/entry/src/main/js/test/Process.test.js @@ -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) } -- GitLab