From 6ae7a4fcf6040deb5d22238d649e115c0d47fd71 Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 12 Oct 2012 08:37:54 +0000 Subject: merge revision(s) 33857,37157: Run the test only if /dev/tty exists. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 7da6878829..41c296e3b6 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2066,7 +2066,8 @@ End def test_ioctl_linux2 return if /linux/ !~ RUBY_PLATFORM - return if /^i?86|^x86_64/ !~ RUBY_PLATFORM + return if /^i.?86|^x86_64/ !~ RUBY_PLATFORM + return unless File.exist?('/dev/tty') File.open('/dev/tty') { |f| tiocgwinsz=0x5413 -- cgit v1.2.3