aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-12 08:19:28 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-12 08:19:28 +0000
commit84fa14aab12ef679ead8af2da2574db9b9a05c84 (patch)
tree2b34c0ece9e02b9a868c5d192d53ab604bd7fb4b /test/ruby/test_io.rb
parent727c8cdfe7d5769d403f180b539e08e0f03eae2f (diff)
downloadruby-84fa14aab12ef679ead8af2da2574db9b9a05c84.tar.gz
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
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb4
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