test: skip test-cpu-prof in debug builds with code cache

The CPU profiler crashes in debug builds when code cache is
enabled. Skip the test temporarily until it's fixed.

PR-URL: https://github.com/nodejs/node/pull/27308
Refs: https://github.com/nodejs/node/issues/27307
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
This commit is contained in:
Joyee Cheung 2019-04-19 20:04:16 +08:00
parent e0e3084482
commit b66f01d903
No known key found for this signature in database
GPG Key ID: 92B78A53C8303B8D

View File

@ -3,6 +3,13 @@
// This tests that --cpu-prof and --cpu-prof-path works.
const common = require('../common');
if (process.features.debug &&
process.config.variables.node_code_cache_path === 'yes') {
// 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');
}
const fixtures = require('../common/fixtures');
common.skipIfInspectorDisabled();