mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
compar.c: fail if recursion
* compar.c (cmp_eq): fail if recursion. [ruby-core:57736] [Bug #9003] * thread.c (rb_exec_recursive_paired_outer): new function which is combinnation of paired and outer variants. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b203f67344
commit
90c1ebbfd5
5 changed files with 35 additions and 1 deletions
|
|
@ -76,4 +76,11 @@ class TestComparable < Test::Unit::TestCase
|
|||
assert_nil(Time.new <=> "")
|
||||
}
|
||||
end
|
||||
|
||||
def test_no_cmp
|
||||
bug9003 = '[ruby-core:57736] [Bug #9003]'
|
||||
assert_nothing_raised(SystemStackError, bug9003) {
|
||||
@o <=> @o.dup
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue