Skip to content

Commit

Permalink
test: fix test-bootstrap-modules for coverage generation
Browse files Browse the repository at this point in the history
The internal binding profiler is loaded if the test is run with
NODE_V8_COVERAGE.

PR-URL: #51816
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ethan Arrowood <[email protected]>
  • Loading branch information
joyeecheung authored and marco-ippolito committed Feb 26, 2024
1 parent d7bd8c2 commit c59cc47
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/parallel/test-bootstrap-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit c59cc47

Please sign in to comment.