зеркало из https://github.com/github/ruby.git
* test/ruby/test_thread.rb: remove unused variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
fa6f4336f3
Коммит
9a4a8673c0
|
@ -1,3 +1,7 @@
|
|||
Tue Jan 25 07:48:22 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||
|
||||
* test/ruby/test_thread.rb: remove unused variables.
|
||||
|
||||
Tue Jan 25 07:45:44 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||
|
||||
* test/ruby/test_thread.rb (TestThread#test_condvar_nolock_2): get
|
||||
|
|
|
@ -149,7 +149,6 @@ class TestThread < Test::Unit::TestCase
|
|||
threads = Array.new
|
||||
mutex = Mutex.new
|
||||
condvar = ConditionVariable.new
|
||||
result = []
|
||||
|
||||
nr_threads.times do |i|
|
||||
if (i != 0)
|
||||
|
@ -202,7 +201,7 @@ class TestThread < Test::Unit::TestCase
|
|||
mutex = Mutex.new
|
||||
condvar = ConditionVariable.new
|
||||
|
||||
thr = Thread.new do
|
||||
Thread.new do
|
||||
assert_raise(ThreadError) {condvar.wait(mutex)}
|
||||
end.join
|
||||
end
|
||||
|
@ -211,7 +210,7 @@ class TestThread < Test::Unit::TestCase
|
|||
mutex = Mutex.new
|
||||
condvar = ConditionVariable.new
|
||||
|
||||
thr = Thread.new do
|
||||
Thread.new do
|
||||
assert_raise(ThreadError) {condvar.wait(mutex, 0.1)}
|
||||
end.join
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче