8000 Filter Ruby engine name rather than just /ruby/ · ruby/io-console@e5951aa · GitHub
[go: up one dir, main page]

Skip to content

Commit e5951aa

Browse files
headiusnobu
authored andcommitted
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.
1 parent 3a29284 commit e5951aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/io/console/test_io_console.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def test_sync
462462
noctty = [EnvUtil.rubybin, "-e", "Process.daemon(true)"]
463463
when !(rubyw = RbConfig::CONFIG["RUBYW_INSTALL_NAME"]).empty?
464464
dir, base = File.split(EnvUtil.rubybin)
465-
noctty = [File.join(dir, base.sub(/ruby/, rubyw))]
465+
noctty = [File.join(dir, base.sub(RUBY_ENGINE, rubyw))]
466466
end
467467

468468
if noctty

0 commit comments

Comments
 (0)
0