[前][次][番号順一覧][スレッド一覧]

ruby-changes:31656

From: nobu <ko1@a...>
Date: Wed, 20 Nov 2013 18:01:48 +0900 (JST)
Subject: [ruby-changes:31656] nobu:r43735 (trunk): test_exception.rb: enclose hash defininition

nobu	2013-11-20 18:01:42 +0900 (Wed, 20 Nov 2013)

  New Revision: 43735

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43735

  Log:
    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.

  Modified files:
    trunk/test/ruby/test_exception.rb
Index: test/ruby/test_exception.rb
===================================================================
--- test/ruby/test_exception.rb	(revision 43734)
+++ test/ruby/test_exception.rb	(revision 43735)
@@ -480,8 +480,10 @@ end.join https://github.com/ruby/ruby/blob/trunk/test/ruby/test_exception.rb#L480
   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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]