summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-14 08:31:24 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-14 08:31:24 +0000
commit64221159aa3e9aa183d6083b04cca50de8009f93 (patch)
treef29d7e6baa61cdf082b9cc0d03965379708256b4
parent3e3953cd66b2204c12b779b73192d7f025019cb5 (diff)
* 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
-rw-r--r--ChangeLog7
-rw-r--r--bootstraptest/test_knownbug.rb13
-rw-r--r--test/ruby/test_io.rb3
3 files changed, 22 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 70e8423c0f5..5062efe67fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Fri Sep 14 17:28:32 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_io.rb: tests which cause SEGV should not be
+ added.
+
+ * bootstraptest/test_knownbug.rb: add above test to known bug.
+
Fri Sep 14 16:24:04 2007 Koichi Sasada <ko1@atdot.net>
* insnhelper.ci (vm_expandarray): assignment should be placed
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index 39dc6a9b8be..b189f8beb5b 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'
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 2ccc0aaa8d2..e1859ad4f0a 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -36,7 +36,8 @@ class TestIO < Test::Unit::TestCase
r.close
end
- def test_ungetc
+ # This test cause SEGV.
+ def _test_ungetc
r, w = IO.pipe
w.close
assert_raise(IOError, "[ruby-dev:31650]") { 20000.times { r.ungetc "a" } }