Skip to content

Commit feb4297

Browse files
committed
fixup: dtrace bootstrap check should only happen if dtrace exists
1 parent c6bc610 commit feb4297

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/parallel/test-bootstrap-modules.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Flags: --expose-internals
12
'use strict';
23

34
// This list must be computed before we require any modules to
@@ -15,7 +16,6 @@ const expectedModules = new Set([
1516
'Internal Binding constants',
1617
'Internal Binding contextify',
1718
'Internal Binding credentials',
18-
'Internal Binding dtrace',
1919
'Internal Binding errors',
2020
'Internal Binding fs_dir',
2121
'Internal Binding fs_event_wrap',
@@ -206,6 +206,11 @@ if (process.env.NODE_V8_COVERAGE) {
206206
expectedModules.add('Internal Binding profiler');
207207
}
208208

209+
const { internalBinding } = require('internal/test/binding');
210+
if (internalBinding('config').hasDtrace) {
211+
expectedModules.add('Internal Binding dtrace');
212+
}
213+
209214
const difference = (setA, setB) => {
210215
return new Set([...setA].filter((x) => !setB.has(x)));
211216
};

0 commit comments

Comments
 (0)