diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/io/console/test_io_console.rb | 11 |
2 files changed, 12 insertions, 4 deletions
@@ -1,3 +1,8 @@ +Sun Jan 23 23:01:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * test/io/console/test_io_console.rb: Don't run test if the system + don't support io/console. + Sun Jan 23 22:17:07 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> * test/fiddle/test_fiddle.rb: Don't run test if the system don't support 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) |