summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_thread.rb5
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