mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
remain RUBY_ON_BUG
for child processes.
`RUBY_ON_BUG` is useful for child processes created by the test process.
This commit is contained in:
parent
308fe1eb85
commit
374904b25f
Notes:
git
2022-01-19 23:17:35 +09:00
1 changed files with 6 additions and 1 deletions
|
@ -152,7 +152,12 @@ module EnvUtil
|
|||
if RUBYLIB and lib = child_env["RUBYLIB"]
|
||||
child_env["RUBYLIB"] = [lib, RUBYLIB].join(File::PATH_SEPARATOR)
|
||||
end
|
||||
child_env['ASAN_OPTIONS'] = ENV['ASAN_OPTIONS'] if ENV['ASAN_OPTIONS']
|
||||
|
||||
# remain env
|
||||
%w(ASAN_OPTIONS RUBY_ON_BUG).each{|name|
|
||||
child_env[name] = ENV[name] if ENV[name]
|
||||
}
|
||||
|
||||
args = [args] if args.kind_of?(String)
|
||||
pid = spawn(child_env, *precommand, rubybin, *args, opt)
|
||||
in_c.close
|
||||
|
|
Loading…
Add table
Reference in a new issue