bootstrap/runner.rb must be run with Ruby 1.8.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-07-04 11:23:13 +00:00
parent 263cd01a31
commit 31f3a2e780

View File

@ -399,7 +399,8 @@ end
def with_stderr
out = err = nil
IO.pipe do |r, w|
begin
r, w = IO.pipe
stderr = $stderr.dup
$stderr.reopen(w)
w.close
@ -410,6 +411,9 @@ def with_stderr
$stderr.reopen(stderr)
err = reader.value
end
ensure
w.close rescue nil
r.close rescue nil
end
return out, err
end