summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--test/ruby/test_thread.rb5
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 3effb1b251..c1bdcc4bdf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
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