test: skip test-cpu-prof in debug builds with code cache · nodejs/node@b66f01d (original) (raw)

Original file line number Diff line number Diff line change
@@ -3,6 +3,13 @@
3 3 // This tests that --cpu-prof and --cpu-prof-path works.
4 4
5 5 const common = require('../common');
6 +if (process.features.debug &&
7 +process.config.variables.node_code_cache_path === 'yes') {
8 +// FIXME(joyeecheung): the profiler crashes when code cache
9 +// is enabled in debug builds.
10 +common.skip('--cpu-prof does not work in debug builds with code cache');
11 +}
12 +
6 13 const fixtures = require('../common/fixtures');
7 14 common.skipIfInspectorDisabled();
8 15