summaryrefslogtreecommitdiff
path: root/test/sequential/test-cpu-prof.js
diff options
context:
space:
mode:
authorRefael Ackermann <refack@gmail.com>2019-04-19 09:43:02 -0400
committerRefael Ackermann <refack@gmail.com>2019-04-22 14:48:50 -0400
commit5aaf666b3b82a66485bea6a6b59fbfc838192e2f (patch)
tree7311dbad032093a9bd0a4a7cb8b5f7678a60cf43 /test/sequential/test-cpu-prof.js
parent49d3d11ba7975b2c6df4ecab55b4619da46fcb95 (diff)
downloadandroid-node-v8-5aaf666b3b82a66485bea6a6b59fbfc838192e2f.tar.gz
android-node-v8-5aaf666b3b82a66485bea6a6b59fbfc838192e2f.tar.bz2
android-node-v8-5aaf666b3b82a66485bea6a6b59fbfc838192e2f.zip
build: improve embedded code-cache detection
PR-URL: https://github.com/nodejs/node/pull/27311 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'test/sequential/test-cpu-prof.js')
-rw-r--r--test/sequential/test-cpu-prof.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/sequential/test-cpu-prof.js b/test/sequential/test-cpu-prof.js
index ffaa0e9b1b..726f99b799 100644
--- a/test/sequential/test-cpu-prof.js
+++ b/test/sequential/test-cpu-prof.js
@@ -3,8 +3,7 @@
// This tests that --cpu-prof, --cpu-prof-dir and --cpu-prof-name works.
const common = require('../common');
-if (process.features.debug &&
- process.config.variables.node_code_cache_path === 'yes') {
+if (process.features.debug && process.features.cached_builtins) {
// FIXME(joyeecheung): the profiler crashes when code cache
// is enabled in debug builds.
common.skip('--cpu-prof does not work in debug builds with code cache');