diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-27 03:54:09 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-27 03:54:09 +0000 |
commit | 5fa2d2b793837a6e249afa9245b9a31b8cc5bb2a (patch) | |
tree | e58b82bc370335acf304fcd3144437962259f21d /test/ruby | |
parent | 7d11b9e2892df8e3936a2079bb101b2b27111937 (diff) | |
download | ruby-5fa2d2b793837a6e249afa9245b9a31b8cc5bb2a.tar.gz |
Run the test only if /dev/tty exists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_io.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 01b3e681e5..0c89738d4a 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2126,6 +2126,7 @@ End def test_ioctl_linux2 return if /linux/ !~ RUBY_PLATFORM return if /^i?86|^x86_64/ !~ RUBY_PLATFORM + return if File.exist?('/dev/tty') File.open('/dev/tty') { |f| tiocgwinsz=0x5413 |