summaryrefslogtreecommitdiff
path: root/test/io/console/test_io_console.rb
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-01 06:36:09 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-01 06:36:09 +0000
commit6851f29bb77592e9908bb61ab117ed382bddcb66 (patch)
tree2eec0ce9e0e362d4dc0db9d05447387a054ff383 /test/io/console/test_io_console.rb
parent3237f7dc9a436a44c068e9bd8572d6e4812df772 (diff)
* 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
Diffstat (limited to 'test/io/console/test_io_console.rb')
-rw-r--r--test/io/console/test_io_console.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index a73fe69576..233f57bee7 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -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)