зеркало из https://github.com/github/ruby.git
* 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:
Родитель
f20d759cd0
Коммит
2620a84070
|
@ -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]'
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче