diff options
author | Michaël Zasso <targos@protonmail.com> | 2021-05-18 20:04:20 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2021-06-14 09:12:45 +0300 |
commit | 1816d46cef634ca4e96f6142169e564ce617a277 (patch) | |
tree | 33bb4ec8acbfd13ba4eefcc3e50fdfac8ce0b867 /test | |
parent | 32961c478175431a2896c67c6005aebe6ba06589 (diff) |
test: adapt test-linux-perf to V8 changes
Refs: https://github.com/v8/v8/commit/9a31804bbe6597bfb54b47958fd3839f2da51875
PR-URL: https://github.com/nodejs/node/pull/38273
Backport-PR-URL: https://github.com/nodejs/node/pull/38991
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
Diffstat (limited to 'test')
-rw-r--r-- | test/v8-updates/test-linux-perf.js | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/test/v8-updates/test-linux-perf.js b/test/v8-updates/test-linux-perf.js index 9a8097b071a..58388d37ce5 100644 --- a/test/v8-updates/test-linux-perf.js +++ b/test/v8-updates/test-linux-perf.js @@ -96,17 +96,20 @@ for (const perfArgs of perfArgsList) { output += perfScript.stdout; } -const interpretedFunctionOneRe = /InterpretedFunction:functionOne/; -const compiledFunctionOneRe = /LazyCompile:\*functionOne/; -const interpretedFunctionTwoRe = /InterpretedFunction:functionTwo/; -const compiledFunctionTwoRe = /LazyCompile:\*functionTwo/; +const interpretedFunctionOneRe = /~functionOne/; +const compiledFunctionOneRe = /\*functionOne/; +const interpretedFunctionTwoRe = /~functionTwo/; +const compiledFunctionTwoRe = /\*functionTwo/; +function makeAssertMessage(message) { + return message + '\nPerf output:\n\n' + output; +} assert.ok(output.match(interpretedFunctionOneRe), - "Couldn't find interpreted functionOne()"); + makeAssertMessage("Couldn't find interpreted functionOne()")); assert.ok(output.match(compiledFunctionOneRe), - "Couldn't find compiled functionOne()"); + makeAssertMessage("Couldn't find compiled functionOne()")); assert.ok(output.match(interpretedFunctionTwoRe), - "Couldn't find interpreted functionTwo()"); + makeAssertMessage("Couldn't find interpreted functionTwo()")); assert.ok(output.match(compiledFunctionTwoRe), - "Couldn't find compiled functionTwo"); + makeAssertMessage("Couldn't find compiled functionTwo")); |