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: nodejs#51816
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
  • Loading branch information
joyeecheung authored and rdw-msft committed Mar 26, 2024
1 parent b8ab924 commit 0cc3dc3
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 @@ -163,6 +163,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 0cc3dc3

Please sign in to comment.