Lounch external process on Windows correctly
This commit is contained in:
parent
d3b2c1a175
commit
6767a9ef2b
@ -117,10 +117,9 @@ module TestIRB
|
|||||||
|
|
||||||
with_temp_stdio do |stdin, stdout|
|
with_temp_stdio do |stdin, stdout|
|
||||||
replace_stdio(stdin.path, stdout.path) do
|
replace_stdio(stdin.path, stdout.path) do
|
||||||
cmds = %W[ruby -Ilib:test -W0 -rirb -e 'IRB.start(__FILE__)']
|
|
||||||
yield(stdin, stdout)
|
yield(stdin, stdout)
|
||||||
stdin.close
|
stdin.close
|
||||||
system(cmds.join(' '))
|
system('ruby', '-Ilib', '-Itest', '-W0', '-rirb', '-e', 'IRB.start(__FILE__)')
|
||||||
stdout.flush
|
stdout.flush
|
||||||
result = stdout.read
|
result = stdout.read
|
||||||
stdout.close
|
stdout.close
|
||||||
|
Loading…
x
Reference in New Issue
Block a user