mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/io-console] Filter Ruby engine name rather than just /ruby/
This breaks tests using this path on JRuby because the `jruby`
executable turns into `jjruby` after the sub.
e5951aa34c
This commit is contained in:
parent
4e1a7678cd
commit
569f56e0f7
1 changed files with 1 additions and 1 deletions
|
@ -462,7 +462,7 @@ defined?(IO.console) and TestIO_Console.class_eval do
|
||||||
noctty = [EnvUtil.rubybin, "-e", "Process.daemon(true)"]
|
noctty = [EnvUtil.rubybin, "-e", "Process.daemon(true)"]
|
||||||
when !(rubyw = RbConfig::CONFIG["RUBYW_INSTALL_NAME"]).empty?
|
when !(rubyw = RbConfig::CONFIG["RUBYW_INSTALL_NAME"]).empty?
|
||||||
dir, base = File.split(EnvUtil.rubybin)
|
dir, base = File.split(EnvUtil.rubybin)
|
||||||
noctty = [File.join(dir, base.sub(/ruby/, rubyw))]
|
noctty = [File.join(dir, base.sub(RUBY_ENGINE, rubyw))]
|
||||||
end
|
end
|
||||||
|
|
||||||
if noctty
|
if noctty
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue