diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-01-27 12:53:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-01-27 12:53:48 +0000 |
commit | 60e85501f20d6992a4dbf0b1930e87cfdf642295 (patch) | |
tree | 22a0b2e1f9c4de9459dc291e28d3da623f99ac82 /test/ruby/test_exception.rb | |
parent | 4f63c763ad56dc40d3b9891f2009aab3fc97cc58 (diff) | |
download | ruby-60e85501f20d6992a4dbf0b1930e87cfdf642295.tar.gz |
thread_pthread.c: get current main thread stack size
* thread_pthread.c: get current main thread stack size, which may
be expanded than allocated size at initialization, by rlimit().
[ruby-core:60113] [Bug #9454]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r-- | test/ruby/test_exception.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index f15b37f8b9..32f97fa1aa 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -488,6 +488,16 @@ end.join rescue SystemStackError end + def test_machine_stackoverflow_by_define_method + bug9454 = '[ruby-core:60113] [Bug #9454]' + assert_separately([], <<-SRC) + assert_raise(SystemStackError, #{bug9454.dump}) { + define_method(:foo) {self.foo} + self.foo + } + SRC + end + def test_cause msg = "[Feature #8257]" cause = nil |