add test for [ruby-dev:31817].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bc5d305843
commit
15838ab005
@ -19,11 +19,32 @@ end
|
||||
assert_equal 'ok', %q{
|
||||
class C
|
||||
undef display
|
||||
remove_method :display
|
||||
begin
|
||||
remove_method :display
|
||||
rescue NameError
|
||||
end
|
||||
end
|
||||
:ok
|
||||
}, '[ruby-dev:31816]'
|
||||
|
||||
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:31817]'
|
||||
|
||||
assert_equal 'ok', %q{
|
||||
Process.setrlimit(Process::RLIMIT_STACK, 1024*1024)
|
||||
class C
|
||||
|
Loading…
x
Reference in New Issue
Block a user