diff options
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_knownbug.rb | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index 89a643a4e7..57d5fd928f 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -19,12 +19,33 @@ 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 attr "a" * (2*1024*1024) |