diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-28 04:58:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-28 04:58:25 +0000 |
commit | 3ff85b795ac42976e5ed51c6add0b18660455abd (patch) | |
tree | 89fb30ecffde7408e7a2e1a76cb1c8a182a77fc6 /test/ruby/test_exception.rb | |
parent | 76bb597728c0d9a2228367e0ecaf6b92b7ffdfd7 (diff) | |
download | ruby-3ff85b795ac42976e5ed51c6add0b18660455abd.tar.gz |
eval.c: no method calls at stack overflow
* eval.c (setup_exception): get rid of method calls before raising
stack overflow, not to cause stack overflow again.
* defs/id.def: add IDs for backtraces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r-- | test/ruby/test_exception.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index c71c7dfc64..48d470f8ed 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -529,8 +529,10 @@ end.join end def test_stackoverflow - e = assert_raise(SystemStackError){m} - assert_operator(e.backtrace.size, :>, 10) + feature6216 = '[ruby-core:43794] [Feature #6216]' + e = assert_raise(SystemStackError, feature6216) {m} + level = e.backtrace.size + assert_operator(level, :>, 10, feature6216) end def test_machine_stackoverflow |