diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-06 01:12:23 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-06 01:12:23 +0000 |
commit | 1c8b370840f46100d342dc26de46531718abeff6 (patch) | |
tree | 841c0fdf3df4fec70981c78d537270e09cbf3c1b /test/io | |
parent | 6df880c86214287c46ace3dde00e4aa28bb9f22a (diff) |
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
Diffstat (limited to 'test/io')
-rw-r--r-- | test/io/console/test_io_console.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index 73c97a6ceb..140fc01782 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -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| |