From cdde8c23de076db8c89795bf8a1bb4308d72d9c1 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 20 Nov 2013 09:01:42 +0000 Subject: test_exception.rb: enclose hash defininition * test/ruby/test_exception.rb: (test_machine_stackoverflow): enclose hash defininition because SystemStackError raises at line 3 on FreeBSD, for unknown reason. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_exception.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/ruby/test_exception.rb') diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index ca6e43ee13..4eddd0bbe2 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -480,8 +480,10 @@ end.join def test_machine_stackoverflow bug9109 = '[ruby-dev:47804] [Bug #9109]' assert_separately([], <<-SRC) - h = {a: ->{h[:a].call}} - assert_raise(SystemStackError, #{bug9109.dump}) {h[:a].call} + assert_raise(SystemStackError, #{bug9109.dump}) { + h = {a: ->{h[:a].call}} + h[:a].call + } SRC end -- cgit v1.2.3