* 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:
parent
f902e09460
commit
ff2af1ed98
@ -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>
|
Wed Sep 26 19:36:26 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* eval.c (eval): fix to check stack overflow.
|
* eval.c (eval): fix to check stack overflow.
|
||||||
|
@ -20,29 +20,3 @@ ensure
|
|||||||
end
|
end
|
||||||
}, 'rename test/ruby/test_io.rb#_test_ungetc if fixed'
|
}, '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]'
|
|
||||||
|
|
||||||
|
@ -957,3 +957,29 @@ assert_equal 'ok', %q{
|
|||||||
end
|
end
|
||||||
}, '[ruby-core:11998]'
|
}, '[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]'
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ class TestIO < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
# This test cause SEGV.
|
# This test cause SEGV.
|
||||||
def _test_ungetc
|
def test_ungetc
|
||||||
r, w = IO.pipe
|
r, w = IO.pipe
|
||||||
w.close
|
w.close
|
||||||
assert_raise(IOError, "[ruby-dev:31650]") { 20000.times { r.ungetc "a" } }
|
assert_raise(IOError, "[ruby-dev:31650]") { 20000.times { r.ungetc "a" } }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user