ruby-changes:51379
From: normal <ko1@a...>
Date: Wed, 6 Jun 2018 10:12:29 +0900 (JST)
Subject: [ruby-changes:51379] normal:r63585 (trunk): test/io/console/test_io_console.rb: fix for systems where PTY is not defined
normal 2018-06-06 10:12:23 +0900 (Wed, 06 Jun 2018) New Revision: 63585 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63585 Log: test/io/console/test_io_console.rb: fix for systems where PTY is not defined [ruby-core:87420] [Bug #14828] Thanks-to: MSP-Greg (Greg L) Modified files: trunk/test/io/console/test_io_console.rb Index: test/io/console/test_io_console.rb =================================================================== --- test/io/console/test_io_console.rb (revision 63584) +++ test/io/console/test_io_console.rb (revision 63585) @@ -7,11 +7,6 @@ rescue LoadError https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L7 end class TestIO_Console < Test::Unit::TestCase -end - -defined?(PTY) and defined?(IO.console) and TestIO_Console.class_eval do - Bug6116 = '[ruby-dev:45309]' - # FreeBSD seems to hang on TTOU when running parallel tests # tested on FreeBSD 11.x def set_winsize_setup @@ -21,6 +16,10 @@ defined?(PTY) and defined?(IO.console) a https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L16 def set_winsize_teardown trap(:TTOU, @old_ttou) if @old_ttou end +end + +defined?(PTY) and defined?(IO.console) and TestIO_Console.class_eval do + Bug6116 = '[ruby-dev:45309]' def test_raw helper {|m, s| -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/