From 7cc4dbca1037a9440da74d980d7d74fae281721c Mon Sep 17 00:00:00 2001 From: chenxuihui Date: Tue, 27 Dec 2022 17:16:15 +0800 Subject: [PATCH] update hidebug xts Signed-off-by: chenxuihui --- .../hidebugtestjstest/src/main/js/test/Hidebug.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hiviewdfx/hidebugtest/hidebugtestjstest/src/main/js/test/Hidebug.test.js b/hiviewdfx/hidebugtest/hidebugtestjstest/src/main/js/test/Hidebug.test.js index a06267695..f69927142 100644 --- a/hiviewdfx/hidebugtest/hidebugtestjstest/src/main/js/test/Hidebug.test.js +++ b/hiviewdfx/hidebugtest/hidebugtestjstest/src/main/js/test/Hidebug.test.js @@ -30,7 +30,7 @@ describe('HidebugJsTest', function () { console.log('************* DFX_DFR_Hiprofiler_Interface_0600 Test start*************'); try { let heapSize = hidebug.getNativeHeapSize(); - expect(heapSize>=BigInt(0)).assertTrue(); + expect(heapSize>BigInt(0)).assertTrue(); } catch (error) { expect().assertFail(); } @@ -46,7 +46,7 @@ describe('HidebugJsTest', function () { console.log('************* DFX_DFR_Hiprofiler_Interface_0400 Test start*************'); try { let heapAllocatedSize = hidebug.getNativeHeapAllocatedSize(); - expect(heapAllocatedSize>=BigInt(0)).assertTrue(); + expect(heapAllocatedSize>BigInt(0)).assertTrue(); } catch (error) { expect().assertFail(); } @@ -62,7 +62,7 @@ describe('HidebugJsTest', function () { console.log('************* DFX_DFR_Hiprofiler_Interface_0500 Test start*************'); try { let heapFreeSize = hidebug.getNativeHeapFreeSize(); - expect(heapFreeSize>=BigInt(0)).assertTrue(); + expect(heapFreeSize>BigInt(0)).assertTrue(); } catch (error) { expect().assertFail(); } @@ -426,7 +426,7 @@ describe('HidebugJsTest', function () { } hidebug.stopJsCpuProfiling(); var pid = process.pid; - let path = "/proc/" + pid + "/root/data/storage/el2/base/files/" + filename + ".json"; + let path = "/proc/" + pid + "/root/data/storage/el2/base/files/" + filename + ".cpuprofile"; let data = fileio.readTextSync(path); if (data.includes("napi")) { expect(true).assertTrue(); -- GitLab