File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
integration-tests/child-process/test Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,15 @@ describe("ChildProcess", () => {
88 await runner ( )
99 . cwd ( baseDir )
1010 . fork ( "app" , [ "ExecShell" ] , { } )
11- . stdout ( process . version ) ;
11+ . stdout ( process . version )
12+ . notStderr ( / D e p r e c a t i o n W a r n i n g / ) ;
1213 } ) ;
1314
1415 it ( "No Shell" , async ( ) => {
1516 await runner ( )
1617 . cwd ( baseDir )
1718 . fork ( "app" , [ "Exec" ] , { } )
18- . stdout ( process . version ) ;
19+ . stdout ( process . version )
20+ . notStderr ( / D e p r e c a t i o n W a r n i n g / ) ;
1921 } ) ;
2022} ) ;
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ var _ChildProcess_run = function (options) {
2222 var workingDir = options . __$workingDirectory ;
2323 var env = options . __$environmentVariables ;
2424 var shell = options . __$shell ;
25+ var cmd = [ options . __$program ] . concat ( options . __$arguments ) . join ( " " ) ;
2526
26- var subProc = childProcess . execFile (
27- options . __$program ,
28- options . __$arguments ,
27+ var subProc = childProcess . exec (
28+ cmd ,
2929 {
3030 encoding : "buffer" ,
3131 timeout : options . __$runDuration ,
@@ -130,8 +130,9 @@ function _ChildProcess_getSubProc(options) {
130130 var workingDir = options . __$workingDirectory ;
131131 var env = options . __$environmentVariables ;
132132 var shell = options . __$shell ;
133+ var cmd = [ options . __$program ] . concat ( options . __$arguments ) . join ( " " ) ;
133134
134- var subproc = childProcess . spawn ( options . __$program , options . __$arguments , {
135+ var subproc = childProcess . spawn ( cmd , {
135136 cwd : _ChildProcess_handleCwd ( workingDir ) ,
136137 env : _ChildProcess_handleEnv ( env ) ,
137138 timeout : options . __$runDuration ,
You can’t perform that action at this time.
0 commit comments