From 765baa7a0b66921be00d6b4d104711f8d5e30caa 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 446a1538ccc5b2..124e106067640f 100644 --- a/test/parallel/test-bootstrap-modules.js +++ b/test/parallel/test-bootstrap-modules.js @@ -161,6 +161,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) => {