mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* bootstraptest/test_thread.rb: just check for normal exit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f20d759cd0
commit
2620a84070
1 changed files with 3 additions and 3 deletions
|
@ -188,18 +188,18 @@ assert_equal %q{11}, %q{
|
|||
Thread.current[:a]
|
||||
}.value + Thread.current[:a]
|
||||
}
|
||||
assert_equal %q{100}, %q{
|
||||
assert_normal_exit %q{
|
||||
begin
|
||||
100.times do |i|
|
||||
begin
|
||||
Thread.start(Thread.current) {|u| u.raise }
|
||||
th = Thread.start(Thread.current) {|u| u.raise }
|
||||
raise
|
||||
rescue
|
||||
ensure
|
||||
th.join
|
||||
end
|
||||
end
|
||||
rescue
|
||||
100
|
||||
end
|
||||
}, '[ruby-dev:31371]'
|
||||
|
||||
|
|
Loading…
Reference in a new issue