* 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
This commit is contained in:
parent
99ef86707c
commit
b9c0b5039c
@ -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>
|
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
|
* test/fiddle/test_fiddle.rb: Don't run test if the system don't support
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
|
begin
|
||||||
require 'io/console'
|
require 'io/console'
|
||||||
require 'pty'
|
require 'pty'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
rescue LoadError
|
||||||
|
end
|
||||||
|
|
||||||
class TestIO_Console < Test::Unit::TestCase
|
class TestIO_Console < Test::Unit::TestCase
|
||||||
def test_raw
|
def test_raw
|
||||||
@ -156,4 +159,4 @@ class TestIO_Console < Test::Unit::TestCase
|
|||||||
m.close if m
|
m.close if m
|
||||||
s.close if s
|
s.close if s
|
||||||
end
|
end
|
||||||
end
|
end if defined?(PTY) and defined?(IO::console)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user