Skip to content

Commit 6ee23e2

Browse files
committed
(PUP-1353) update windows exec spec
1 parent 0017a95 commit 6ee23e2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/unit/util/execution_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ def stub_process_wait(exitstatus)
149149
expect(Process).to receive(:create).with(
150150
:command_line => "test command",
151151
:startup_info => {:stdin => @stdin, :stdout => @stdout, :stderr => @stderr},
152-
:close_handles => false
152+
:close_handles => false,
153+
:creation_flags => 0
153154
).and_return(proc_info_stub)
154155

155156
call_exec_windows('test command', {}, @stdin, @stdout, @stderr)
@@ -166,7 +167,8 @@ def stub_process_wait(exitstatus)
166167
:stderr => @stderr
167168
},
168169
:close_handles => false,
169-
:cwd => cwd
170+
:cwd => cwd,
171+
:creation_flags => 0
170172
)
171173

172174
call_exec_windows('test command', { :cwd => cwd }, @stdin, @stdout, @stderr)

0 commit comments

Comments
 (0)