From 64221159aa3e9aa183d6083b04cca50de8009f93 Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 14 Sep 2007 08:31:24 +0000 Subject: * test/ruby/test_io.rb: tests which cause SEGV should not be added. * bootstraptest/test_knownbug.rb: add above test to known bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_knownbug.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'bootstraptest') diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index 39dc6a9b8b..b189f8beb5 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -2,3 +2,16 @@ # This test file concludes tests which point out known bugs. # So all tests will cause failure. # + +assert_equal 'ok', %q{ +begin + r, w = IO.pipe + w.close + # assert_raise(IOError, "[ruby-dev:31650]") { 20000.times { r.ungetc "a" } } + 20000.times { r.ungetc "a" } +rescue IOError + :ok +ensure + r.close +end +}, 'rename test/ruby/test_io.rb#_test_ungetc if fixed' -- cgit v1.2.3