From 1c8b370840f46100d342dc26de46531718abeff6 Mon Sep 17 00:00:00 2001 From: normal Date: Wed, 6 Jun 2018 01:12:23 +0000 Subject: 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 --- test/io/console/test_io_console.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'test/io/console') 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| -- cgit v1.2.3