1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bootstraptest/test_knownbug.rb: move fixed tests.

* bootstraptest/test_method.rb: ditto.
* test/ruby/test_io.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2007-09-26 11:01:18 +00:00
parent f902e09460
commit ff2af1ed98
4 changed files with 35 additions and 27 deletions

View file

@ -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.

View file

@ -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]'

View file

@ -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]'

View file

@ -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" } }