summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 7da6878..41c296e 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