mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
envutil.rb: env hash
* test/ruby/envutil.rb (assert_separately): keep environment hash first if exists. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9efcd10371
commit
a24b6d3f67
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ module Test
|
|||
end
|
||||
eom
|
||||
args = args.dup
|
||||
$:.each{|l| args.unshift "-I#{l}" }
|
||||
args.insert((Hash === args.first ? 1 : 0), *$:.map {|l| "-I#{l}"})
|
||||
ignore_stderr = opt.delete(:ignore_stderr)
|
||||
stdout, stderr, status = EnvUtil.invoke_ruby(args, src, true, true, opt)
|
||||
abort = status.coredump? || (status.signaled? && ABORT_SIGNALS.include?(status.termsig))
|
||||
|
|
Loading…
Reference in a new issue