ruby-changes:26619
From: nobu <ko1@a...>
Date: Tue, 1 Jan 2013 23:42:57 +0900 (JST)
Subject: [ruby-changes:26619] nobu:r38670 (trunk): * bootstraptest/test_thread.rb: get rid of "invalid nest" error in
nobu 2013-01-01 23:42:50 +0900 (Tue, 01 Jan 2013) New Revision: 38670 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38670 Log: * bootstraptest/test_thread.rb: get rid of "invalid nest" error in ruby-mode.el. Modified files: trunk/bootstraptest/test_thread.rb Index: bootstraptest/test_thread.rb =================================================================== --- bootstraptest/test_thread.rb (revision 38669) +++ bootstraptest/test_thread.rb (revision 38670) @@ -189,18 +189,18 @@ assert_equal %q{11}, %q{ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_thread.rb#L189 }.value + Thread.current[:a] } assert_normal_exit %q{ -begin - 100.times do |i| - begin - th = Thread.start(Thread.current) {|u| u.raise } - raise - rescue - ensure - th.join + begin + 100.times do |i| + begin + th = Thread.start(Thread.current) {|u| u.raise } + raise + rescue + ensure + th.join + end end + rescue end -rescue -end }, '[ruby-dev:31371]' assert_equal 'true', %{ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/