Skip to content

Commit 0cc3dc3

Browse files
joyeecheungrdw-msft
authored andcommitted
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: nodejs#51816 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
1 parent b8ab924 commit 0cc3dc3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/parallel/test-bootstrap-modules.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ if (process.features.inspector) {
163163
expected.beforePreExec.add('Internal Binding inspector');
164164
expected.beforePreExec.add('NativeModule internal/util/inspector');
165165
expected.atRunTime.add('NativeModule internal/inspector_async_hook');
166+
167+
// This is loaded if the test is run with NODE_V8_COVERAGE.
168+
if (process.env.NODE_V8_COVERAGE) {
169+
expected.atRunTime.add('Internal Binding profiler');
170+
}
166171
}
167172

168173
const difference = (setA, setB) => {

0 commit comments

Comments
 (0)