1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/io/console/test_io_console.rb (TestIO_Console#test_sync):

Skip when PTY allocation failed (that's not our failt).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2011-08-01 06:36:09 +00:00
parent 3237f7dc9a
commit 6851f29bb7
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Mon Aug 1 15:31:14 2011 URABE Shyouhei <shyouhei@ruby-lang.org>
* test/io/console/test_io_console.rb (TestIO_Console#test_sync):
Skip when PTY allocation failed (that's not our failt).
Mon Aug 1 15:04:12 2011 URABE Shyouhei <shyouhei@ruby-lang.org>
* test/xmlrpc/test_webrick_server.rb (Test_Webrick#setup_http_server):

View file

@ -155,6 +155,9 @@ class TestIO_Console < Test::Unit::TestCase
else
def test_sync
r, w, pid = PTY.spawn(EnvUtil.rubybin, "-rio/console", "-e", "p IO.console.class")
rescue RuntimeError
skip $!
else
con = r.gets.chomp
Process.wait(pid)
assert_match("File", con)