diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-02 02:59:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-02 02:59:17 +0000 |
commit | 4a64cf9fbd756cc08cdbd2e68fb758f0421f9143 (patch) | |
tree | 6f51f130902f2b2ec3595eef20a10c0f35931451 /test | |
parent | 5bde02d0040818ca6caf47e559a36a56da40c77c (diff) | |
download | ruby-4a64cf9fbd756cc08cdbd2e68fb758f0421f9143.tar.gz |
test_method.rb: finite loop
* test/ruby/test_method.rb (test_unlinked_method_entry_in_method_object_bug):
do not expect timeout as normal result. [Bug #8100]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_method.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index da893b0646..0e2178d30c 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -772,19 +772,14 @@ class TestMethod < Test::Unit::TestCase def test_unlinked_method_entry_in_method_object_bug bug8100 = '[ruby-core:53640] [Bug #8100]' - begin - assert_normal_exit %q{ - loop do + assert_normal_exit %q{ + 1_000_000.times do def x "hello" * 1000 end method(:x).call end - }, bug8100, timeout: 2 - rescue Timeout::Error => e - else - end - assert_raise(Timeout::Error, bug8100) {raise e if e} + }, bug8100 end def test_singleton_method |