diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-25 09:33:10 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-25 09:43:29 +0900 |
commit | fc9eb5b9c1b0a6f61735ace45ab39c281a55e8a3 (patch) | |
tree | f73015cab55c03b2db466f034bd564c61151ba45 /test/io/console | |
parent | 8e8dd88c80e43c0d10857a3394df7cf0fb6e2cb2 (diff) | |
download | ruby-fc9eb5b9c1b0a6f61735ace45ab39c281a55e8a3.tar.gz |
[ruby/io-console] Load the current libraries
https://github.com/ruby/io-console/commit/ab7653c543
Diffstat (limited to 'test/io/console')
-rw-r--r-- | test/io/console/test_io_console.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index c51c9dad3d..3cf21d22ec 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -7,6 +7,8 @@ rescue LoadError 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 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 |