From 5fa2d2b793837a6e249afa9245b9a31b8cc5bb2a Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 27 Nov 2011 03:54:09 +0000 Subject: Run the test only if /dev/tty exists. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby/test_io.rb') diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 01b3e681e5..0c89738d4a 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2126,6 +2126,7 @@ End def test_ioctl_linux2 return if /linux/ !~ RUBY_PLATFORM return if /^i?86|^x86_64/ !~ RUBY_PLATFORM + return if File.exist?('/dev/tty') File.open('/dev/tty') { |f| tiocgwinsz=0x5413 -- cgit v1.2.3