Removed unused variables
This commit is contained in:
parent
d233f9175c
commit
2bb217bfb7
@ -332,7 +332,6 @@ class TestSignal < Test::Unit::TestCase
|
|||||||
old = trap(:CHLD, 'IGNORE')
|
old = trap(:CHLD, 'IGNORE')
|
||||||
cmd = [ EnvUtil.rubybin, '--disable=gems', '-e' ]
|
cmd = [ EnvUtil.rubybin, '--disable=gems', '-e' ]
|
||||||
assert(system(*cmd, 'exit!(0)'), 'no ECHILD')
|
assert(system(*cmd, 'exit!(0)'), 'no ECHILD')
|
||||||
t0 = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
|
||||||
IO.pipe do |r, w|
|
IO.pipe do |r, w|
|
||||||
pid = spawn(*cmd, "STDIN.read", in: r)
|
pid = spawn(*cmd, "STDIN.read", in: r)
|
||||||
nb = Process.wait(pid, Process::WNOHANG)
|
nb = Process.wait(pid, Process::WNOHANG)
|
||||||
|
@ -882,15 +882,15 @@ class TestThread < Test::Unit::TestCase
|
|||||||
begin
|
begin
|
||||||
begin
|
begin
|
||||||
Thread.pass until done
|
Thread.pass until done
|
||||||
rescue => e
|
rescue
|
||||||
q.push :ng1
|
q.push :ng1
|
||||||
end
|
end
|
||||||
begin
|
begin
|
||||||
Thread.handle_interrupt(Object => :immediate){} if Thread.pending_interrupt?
|
Thread.handle_interrupt(Object => :immediate){} if Thread.pending_interrupt?
|
||||||
rescue RuntimeError => e
|
rescue RuntimeError
|
||||||
q.push :ok
|
q.push :ok
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue
|
||||||
q.push :ng2
|
q.push :ng2
|
||||||
ensure
|
ensure
|
||||||
q.push :ng3
|
q.push :ng3
|
||||||
@ -1189,12 +1189,10 @@ q.pop
|
|||||||
bug8433 = '[ruby-core:55102] [Bug #8433]'
|
bug8433 = '[ruby-core:55102] [Bug #8433]'
|
||||||
|
|
||||||
mutex = Thread::Mutex.new
|
mutex = Thread::Mutex.new
|
||||||
flag = false
|
|
||||||
mutex.lock
|
mutex.lock
|
||||||
|
|
||||||
th = Thread.new do
|
th = Thread.new do
|
||||||
mutex.synchronize do
|
mutex.synchronize do
|
||||||
flag = true
|
|
||||||
sleep
|
sleep
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -45,7 +45,7 @@ class TestUnicodeNormalize
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
@@tests ||= read_tests
|
@@tests ||= read_tests
|
||||||
rescue Errno::ENOENT => e
|
rescue Errno::ENOENT
|
||||||
@@tests ||= []
|
@@tests ||= []
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user