ruby-changes:18616
From: kosaki <ko1@a...>
Date: Sun, 23 Jan 2011 23:03:34 +0900 (JST)
Subject: [ruby-changes:18616] Ruby:r30640 (trunk): * test/io/console/test_io_console.rb: Don't run test if the system
kosaki 2011-01-23 23:03:24 +0900 (Sun, 23 Jan 2011) New Revision: 30640 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30640 Log: * test/io/console/test_io_console.rb: Don't run test if the system don't support io/console. Modified files: trunk/ChangeLog trunk/test/io/console/test_io_console.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 30639) +++ ChangeLog (revision 30640) @@ -1,3 +1,8 @@ +Sun Jan 23 23:01:54 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * 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@g...> * test/fiddle/test_fiddle.rb: Don't run test if the system don't support Index: test/io/console/test_io_console.rb =================================================================== --- test/io/console/test_io_console.rb (revision 30639) +++ test/io/console/test_io_console.rb (revision 30640) @@ -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 @@ m.close if m s.close if s end -end +end if defined?(PTY) and defined?(IO::console) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/