aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--test/io/console/test_io_console.rb3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 733f5adf9c..44979186eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
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)