mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6df880c862
commit
1c8b370840
1 changed files with 4 additions and 5 deletions
|
@ -7,11 +7,6 @@ rescue LoadError
|
|||
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) and TestIO_Console.class_eval do
|
|||
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|
|
||||
|
|
Loading…
Reference in a new issue