summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-16 00:49:23 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-16 00:49:23 +0000
commit535649eed14f40e6fd429786668209ad32fddf74 (patch)
tree58b9b916794eaee235d30496d8959be11fe37214
parent998a3981894a7c558467104066356edd9ca4bf31 (diff)
merge revision(s) 37169: [Backport #7169]
use tty(1) to check if /dev/tty is usable or not git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_io.rb2
-rw-r--r--version.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 41c296e3b6..074fdee23a 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -2067,8 +2067,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=""
diff --git a/version.h b/version.h
index 3f6df3e58a..f8bea27a6a 100644
--- a/version.h
+++ b/version.h
@@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.3"
-#define RUBY_PATCHLEVEL 290
+#define RUBY_PATCHLEVEL 291
#define RUBY_RELEASE_DATE "2012-10-16"
#define RUBY_RELEASE_YEAR 2012