ruby-changes:57889
From: Nobuyoshi <ko1@a...>
Date: Wed, 25 Sep 2019 09:45:46 +0900 (JST)
Subject: [ruby-changes:57889] fc9eb5b9c1 (master): [ruby/io-console] Load the current libraries
https://git.ruby-lang.org/ruby.git/commit/?id=fc9eb5b9c1 From fc9eb5b9c1b0a6f61735ace45ab39c281a55e8a3 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 25 Sep 2019 09:33:10 +0900 Subject: [ruby/io-console] Load the current libraries https://github.com/ruby/io-console/commit/ab7653c543 diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index c51c9da..3cf21d2 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -7,6 +7,8 @@ rescue LoadError https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L7 end class TestIO_Console < Test::Unit::TestCase + PATHS = $LOADED_FEATURES.grep(%r"/io/console(?:\.#{RbConfig::CONFIG['DLEXT']}|/\w+\.rb)\z") {$`} + # FreeBSD seems to hang on TTOU when running parallel tests # tested on FreeBSD 11.x def set_winsize_setup @@ -326,7 +328,7 @@ defined?(PTY) and defined?(IO.console) and TestIO_Console.class_eval do https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L328 end def run_pty(src, n = 1) - r, w, pid = PTY.spawn(EnvUtil.rubybin, "-rio/console", "-e", src) + r, w, pid = PTY.spawn(EnvUtil.rubybin, "-I#{TestIO_Console::PATHS.join(File::PATH_SEPARATOR)}", "-rio/console", "-e", src) rescue RuntimeError skip $! else -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/