diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-24 22:50:21 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-24 22:50:21 +0000 |
commit | 9a4a8673c08b1980d8bf4f9a1154bc1175c77b2b (patch) | |
tree | 301da429928c004b7b5d7da74bebd4b9cbd8ac8a /test | |
parent | fa6f4336f39c2e7f4692ecf791c25a56d7c36a46 (diff) | |
download | ruby-9a4a8673c08b1980d8bf4f9a1154bc1175c77b2b.tar.gz |
* 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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_thread.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index 0df25263bb..4e53b7fa86 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -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 |