diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | bootstraptest/test_knownbug.rb | 26 | ||||
-rw-r--r-- | bootstraptest/test_method.rb | 26 | ||||
-rw-r--r-- | test/ruby/test_io.rb | 2 |
4 files changed, 35 insertions, 27 deletions
@@ -1,3 +1,11 @@ +Wed Sep 26 20:00:12 2007 Koichi Sasada <ko1@atdot.net> + + * bootstraptest/test_knownbug.rb: move fixed tests. + + * bootstraptest/test_method.rb: ditto. + + * test/ruby/test_io.rb: ditto. + Wed Sep 26 19:36:26 2007 Koichi Sasada <ko1@atdot.net> * eval.c (eval): fix to check stack overflow. diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index 07ba5e8e2c..7646885258 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -20,29 +20,3 @@ ensure end }, 'rename test/ruby/test_io.rb#_test_ungetc if fixed' -assert_equal 'ok', %q{ - class B - def m() :fail end - end - class C < B - undef m - begin - remove_method :m - rescue NameError - end - end - begin - C.new.m - rescue NameError - :ok - end -}, '[ruby-dev:31816], [ruby-dev:31817]' - -assert_equal 'ok', %q{ - Process.setrlimit(Process::RLIMIT_STACK, 1024*1024) - class C - attr "a" * (2*1024*1024) - end - :ok -}, '[ruby-dev:31818]' - diff --git a/bootstraptest/test_method.rb b/bootstraptest/test_method.rb index bca80087bb..81d90041b7 100644 --- a/bootstraptest/test_method.rb +++ b/bootstraptest/test_method.rb @@ -957,3 +957,29 @@ assert_equal 'ok', %q{ end }, '[ruby-core:11998]' +assert_equal 'ok', %q{ + class B + def m() :fail end + end + class C < B + undef m + begin + remove_method :m + rescue NameError + end + end + begin + C.new.m + rescue NameError + :ok + end +}, '[ruby-dev:31816], [ruby-dev:31817]' + +assert_equal 'ok', %q{ + Process.setrlimit(Process::RLIMIT_STACK, 1024*1024) + class C + attr "a" * (2*1024*1024) + end + :ok +}, '[ruby-dev:31818]' + diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index e1859ad4f0..7da6535edf 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -37,7 +37,7 @@ class TestIO < Test::Unit::TestCase end # This test cause SEGV. - def _test_ungetc + def test_ungetc r, w = IO.pipe w.close assert_raise(IOError, "[ruby-dev:31650]") { 20000.times { r.ungetc "a" } } |