summaryrefslogtreecommitdiff
path: root/bootstraptest/test_method.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-26 11:01:18 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-26 11:01:18 +0000
commitff2af1ed9843ac3bb7cddc014b58b5dcde225ebd (patch)
treeb136b1826b62f83c57a1792971a692876edfa4cf /bootstraptest/test_method.rb
parentf902e0946044222e4214ddde0e63ba64a435d7bb (diff)
* 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
Diffstat (limited to 'bootstraptest/test_method.rb')
-rw-r--r--bootstraptest/test_method.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/bootstraptest/test_method.rb b/bootstraptest/test_method.rb
index bca8008..81d9004 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]'
+