diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-01 14:42:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-01 14:42:50 +0000 |
commit | 4136f8ce890350c8899fb853397de15b68453445 (patch) | |
tree | 8554185127923860a5e947ba7437729cb4e80131 /bootstraptest/test_thread.rb | |
parent | 5c7027d227f6c1517d6fd2767ad08b6c7e9fc3bf (diff) | |
download | ruby-4136f8ce890350c8899fb853397de15b68453445.tar.gz |
* bootstraptest/test_thread.rb: get rid of "invalid nest" error in
ruby-mode.el.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_thread.rb')
-rw-r--r-- | bootstraptest/test_thread.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb index 19799ab4d3..61407209fe 100644 --- a/bootstraptest/test_thread.rb +++ b/bootstraptest/test_thread.rb @@ -189,18 +189,18 @@ assert_equal %q{11}, %q{ }.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', %{ |