diff options
-rw-r--r-- | test/ruby/test_io.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 130d6afe3e..ddc5f8cb00 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2429,8 +2429,8 @@ End def test_ioctl_linux2 return if /linux/ !~ RUBY_PLATFORM return if /^i.?86|^x86_64/ !~ RUBY_PLATFORM - return unless File.exist?('/dev/tty') + return unless system('tty', '-s') # stdin is not a terminal File.open('/dev/tty') { |f| tiocgwinsz=0x5413 winsize="" |