From dd0f164ca3f0c85dbbaf8a431e13fd08d4be3835 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Tue, 20 Feb 2024 23:03:48 +0100 Subject: [PATCH] test: fix test-bootstrap-modules for coverage generation The internal binding profiler is loaded if the test is run with NODE_V8_COVERAGE. PR-URL: https://github.com/nodejs/node/pull/51816 Reviewed-By: Moshe Atlow Reviewed-By: Luigi Pinca Reviewed-By: Ethan Arrowood --- test/parallel/test-bootstrap-modules.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/parallel/test-bootstrap-modules.js b/test/parallel/test-bootstrap-modules.js index 1ed76dd6bd48a3..5c4def64cd0aa0 100644 --- a/test/parallel/test-bootstrap-modules.js +++ b/test/parallel/test-bootstrap-modules.js @@ -160,6 +160,11 @@ if (process.features.inspector) { expected.beforePreExec.add('Internal Binding inspector'); expected.beforePreExec.add('NativeModule internal/util/inspector'); expected.atRunTime.add('NativeModule internal/inspector_async_hook'); + + // This is loaded if the test is run with NODE_V8_COVERAGE. + if (process.env.NODE_V8_COVERAGE) { + expected.atRunTime.add('Internal Binding profiler'); + } } const difference = (setA, setB) => {