summaryrefslogtreecommitdiff
path: root/test/io/console/test_io_console.rb
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-23 14:03:24 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-23 14:03:24 +0000
commitb9c0b5039c77095b36e35dc3227458b09631dd78 (patch)
treece6969314e6406e29f1f4b3610544fa20740a66f /test/io/console/test_io_console.rb
parent99ef86707ced54a1aa5a0c741cf09205f1a9e5a0 (diff)
* test/io/console/test_io_console.rb: Don't run test if the system
don't support io/console. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/io/console/test_io_console.rb')
-rw-r--r--test/io/console/test_io_console.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index ce23d99fd4..75d8415fce 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -1,6 +1,9 @@
-require 'io/console'
-require 'pty'
-require 'test/unit'
+begin
+ require 'io/console'
+ require 'pty'
+ require 'test/unit'
+rescue LoadError
+end
class TestIO_Console < Test::Unit::TestCase
def test_raw
@@ -156,4 +159,4 @@ class TestIO_Console < Test::Unit::TestCase
m.close if m
s.close if s
end
-end
+end if defined?(PTY) and defined?(IO::console)