Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: Verify the shell option works properly on execFile
from @richardlau `process.env.SHELL is likely to not be set on Windows
so this will end up being undefined.`
This commit prevents this from happening.
  • Loading branch information
jvelezpo committed Jan 26, 2018
commit c85545b07e7d37da997b4610c8293731e90a404a
2 changes: 1 addition & 1 deletion test/parallel/test-child-process-execfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { getSystemErrorName } = require('util');
const fixtures = require('../common/fixtures');

const fixture = fixtures.path('exit.js');
const execOpts = { encoding: 'utf8', shell: process.env.SHELL };
const execOpts = { encoding: 'utf8', shell: true };

{
execFile(
Expand Down
2 changes: 1 addition & 1 deletion test/sequential/test-child-process-execsync.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const TIMER = 200;
const SLEEP = 2000;

const start = Date.now();
const execOpts = { encoding: 'utf8', shell: process.env.SHELL };
const execOpts = { encoding: 'utf8', shell: true };
let err;
let caught = false;

Expand Down