diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_io.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |