summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-22 23:26:31 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-22 23:26:31 +0000
commit15838ab0053aa6319696f64fc3f85b291c5eb6d0 (patch)
tree3797f15969b69920c1e6428232261fc76de7acf6 /bootstraptest
parentbc5d30584353fc9770f6009cb8017260af5a98c6 (diff)
add test for [ruby-dev:31817].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_knownbug.rb23
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)