diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_bignum.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_file_exhaustive.rb | 1 | ||||
-rw-r--r-- | test/ruby/test_numeric.rb | 1 | ||||
-rw-r--r-- | test/ruby/test_process.rb | 1 | ||||
-rw-r--r-- | test/ruby/test_system.rb | 4 | ||||
-rw-r--r-- | test/ruby/test_thread_queue.rb | 2 |
6 files changed, 3 insertions, 8 deletions
diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb index 58d63a7c29..434c5befd9 100644 --- a/test/ruby/test_bignum.rb +++ b/test/ruby/test_bignum.rb @@ -10,7 +10,6 @@ class TestBignum < Test::Unit::TestCase FIXNUM_MAX = RbConfig::LIMITS['FIXNUM_MAX'] BIGNUM_MIN = FIXNUM_MAX + 1 - b = BIGNUM_MIN f = BIGNUM_MIN n = 0 @@ -612,7 +611,6 @@ class TestBignum < Test::Unit::TestCase return # GMP doesn't support interrupt during an operation. end time = Time.now - start_flag = false end_flag = false num = (65536 ** 65536) q = Queue.new diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb index 02890bb2a7..0612a618d6 100644 --- a/test/ruby/test_file_exhaustive.rb +++ b/test/ruby/test_file_exhaustive.rb @@ -683,7 +683,6 @@ class TestFileExhaustive < Test::Unit::TestCase def test_utime_symlinkfile return unless symlinkfile t = Time.local(2000) - stat = File.lstat(symlinkfile) assert_equal(1, File.utime(t, t, symlinkfile)) assert_equal(t, File.stat(regular_file).atime) assert_equal(t, File.stat(regular_file).mtime) diff --git a/test/ruby/test_numeric.rb b/test/ruby/test_numeric.rb index f48bce5411..4e5404aa4a 100644 --- a/test/ruby/test_numeric.rb +++ b/test/ruby/test_numeric.rb @@ -52,7 +52,6 @@ class TestNumeric < Test::Unit::TestCase end.new assert_equal(-1, -a) - bug7688 = '[ruby-core:51389] [Bug #7688]' a = Class.new(Numeric) do def coerce(x); raise StandardError, "my error"; end end.new diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index fb3f50a573..02efc168c2 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -2362,7 +2362,6 @@ EOS w.syswrite("exec failed\n") end q = Queue.new - run = true th1 = Thread.new { i = 0; i += 1 while q.empty?; i } th2 = Thread.new { j = 0; j += 1 while q.empty? && Thread.pass.nil?; j } sleep 0.5 diff --git a/test/ruby/test_system.rb b/test/ruby/test_system.rb index 477767905b..31c9cd7654 100644 --- a/test/ruby/test_system.rb +++ b/test/ruby/test_system.rb @@ -188,7 +188,7 @@ class TestSystem < Test::Unit::TestCase name = "\u{30c6 30b9 30c8}" tmpfilename = "#{tmpdir}/#{name}.cmd" message = /#{name}\.cmd/ - e = assert_raise_with_message(Errno::ENOENT, message) do + assert_raise_with_message(Errno::ENOENT, message) do system(tmpfilename, exception: true) end open(tmpfilename, "w") {|f| @@ -196,7 +196,7 @@ class TestSystem < Test::Unit::TestCase f.puts "exit 127" f.chmod(0755) } - e = assert_raise_with_message(RuntimeError, message) do + assert_raise_with_message(RuntimeError, message) do system(tmpfilename, exception: true) end end diff --git a/test/ruby/test_thread_queue.rb b/test/ruby/test_thread_queue.rb index 8cebbbecb4..4e34bb4f46 100644 --- a/test/ruby/test_thread_queue.rb +++ b/test/ruby/test_thread_queue.rb @@ -474,7 +474,7 @@ class TestThreadQueue < Test::Unit::TestCase prod_threads.each{|t| begin t.join - rescue => e + rescue end } end |