ruby-changes:56264
From: Nobuyoshi <ko1@a...>
Date: Fri, 28 Jun 2019 23:22:06 +0900 (JST)
Subject: [ruby-changes:56264] Nobuyoshi Nakada: 2bb217bfb7 (trunk): Removed unused variables
https://git.ruby-lang.org/ruby.git/commit/?id=2bb217bfb7 From 2bb217bfb7703ba923d0e1d69b2f2dddb66cc7d6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 28 Jun 2019 18:31:42 +0900 Subject: Removed unused variables diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb index 425dc26..1929805 100644 --- a/test/ruby/test_signal.rb +++ b/test/ruby/test_signal.rb @@ -332,7 +332,6 @@ class TestSignal < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_signal.rb#L332 old = trap(:CHLD, 'IGNORE') cmd = [ EnvUtil.rubybin, '--disable=gems', '-e' ] assert(system(*cmd, 'exit!(0)'), 'no ECHILD') - t0 = Process.clock_gettime(Process::CLOCK_MONOTONIC) IO.pipe do |r, w| pid = spawn(*cmd, "STDIN.read", in: r) nb = Process.wait(pid, Process::WNOHANG) diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index f133126..3283e30 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -882,15 +882,15 @@ class TestThread < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_thread.rb#L882 begin begin Thread.pass until done - rescue => e + rescue q.push :ng1 end begin Thread.handle_interrupt(Object => :immediate){} if Thread.pending_interrupt? - rescue RuntimeError => e + rescue RuntimeError q.push :ok end - rescue => e + rescue q.push :ng2 ensure q.push :ng3 @@ -1189,12 +1189,10 @@ q.pop https://github.com/ruby/ruby/blob/trunk/test/ruby/test_thread.rb#L1189 bug8433 = '[ruby-core:55102] [Bug #8433]' mutex = Thread::Mutex.new - flag = false mutex.lock th = Thread.new do mutex.synchronize do - flag = true sleep end end diff --git a/test/test_unicode_normalize.rb b/test/test_unicode_normalize.rb index 0346b4c..034d71d 100644 --- a/test/test_unicode_normalize.rb +++ b/test/test_unicode_normalize.rb @@ -45,7 +45,7 @@ class TestUnicodeNormalize https://github.com/ruby/ruby/blob/trunk/test/test_unicode_normalize.rb#L45 begin @@tests ||= read_tests - rescue Errno::ENOENT => e + rescue Errno::ENOENT @@tests ||= [] end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/