ruby-changes:21808
From: naruse <ko1@a...>
Date: Sun, 27 Nov 2011 12:54:19 +0900 (JST)
Subject: [ruby-changes:21808] naruse:r33857 (trunk): Run the test only if /dev/tty exists.
naruse 2011-11-27 12:54:09 +0900 (Sun, 27 Nov 2011) New Revision: 33857 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33857 Log: Run the test only if /dev/tty exists. Modified files: trunk/test/ruby/test_io.rb Index: test/ruby/test_io.rb =================================================================== --- test/ruby/test_io.rb (revision 33856) +++ test/ruby/test_io.rb (revision 33857) @@ -2126,6 +2126,7 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/