From b66f01d9037a120a8aad624c57e769fb418ccd9c Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Fri, 19 Apr 2019 20:04:16 +0800 Subject: [PATCH] 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 Reviewed-By: Yongsheng Zhang Reviewed-By: Gus Caplan --- test/sequential/test-cpu-prof.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/sequential/test-cpu-prof.js b/test/sequential/test-cpu-prof.js index a13db4ac10ef4e..8b9001ba674e23 100644 --- a/test/sequential/test-cpu-prof.js +++ b/test/sequential/test-cpu-prof.js @@ -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();