From 84fa14aab12ef679ead8af2da2574db9b9a05c84 Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 12 Oct 2012 08:19:28 +0000 Subject: Fix wrong condition of skipping test_ioctl_linux git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index c70d972c74..130d6afe3e 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2428,8 +2428,8 @@ End def test_ioctl_linux2 return if /linux/ !~ RUBY_PLATFORM - return if /^i?86|^x86_64/ !~ RUBY_PLATFORM - return if File.exist?('/dev/tty') + 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