Skip to content

Commit db21cb3

Browse files
authored
Update test-cli-node-print-help.js
1 parent 56f1f60 commit db21cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-cli-node-print-help.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ startPrintHelpTest();
5757

5858
// Test closed stdout for `node --help`. Like `node --help | head -n5`.
5959
(async () => {
60-
const cp = spawn('node', ['--help'], {
60+
const cp = spawn(process.execPath, ['--help'], {
6161
stdio: ['inherit', 'pipe', 'inherit'],
6262
});
6363
cp.stdout.destroy();

0 commit comments

Comments
 (0)