From fa7b849f946c37422d27ce601582a7aa24eed0e3 Mon Sep 17 00:00:00 2001 From: hsbt Date: Mon, 24 Feb 2014 09:12:18 +0000 Subject: [PATCH] * test/fiddle/test_function.rb: remove unused variables. * test/fileutils/test_fileutils.rb: ditto. * test/io/console/test_io_console.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ test/fiddle/test_function.rb | 2 +- test/fileutils/test_fileutils.rb | 2 +- test/io/console/test_io_console.rb | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 04b6994aef..2601b37753 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Feb 24 18:10:02 2014 SHIBATA Hiroshi + + * test/fiddle/test_function.rb: remove unused variables. + * test/fileutils/test_fileutils.rb: ditto. + * test/io/console/test_io_console.rb: ditto. + Mon Feb 24 12:37:51 2014 Eric Wong * configure.in: use -Wno-packed-bitfield-compat for GCC 4.4+ diff --git a/test/fiddle/test_function.rb b/test/fiddle/test_function.rb index f7a49dc6fa..e617c0b61e 100644 --- a/test/fiddle/test_function.rb +++ b/test/fiddle/test_function.rb @@ -59,7 +59,7 @@ module Fiddle func = Function.new(@libc['strcpy'], [TYPE_VOIDP, TYPE_VOIDP], TYPE_VOIDP) assert_nil Fiddle.last_error - str = func.call("000", "123") + func.call("000", "123") refute_nil Fiddle.last_error end diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index 24d4f3c566..b733488cf8 100644 --- a/test/fileutils/test_fileutils.rb +++ b/test/fileutils/test_fileutils.rb @@ -1170,7 +1170,7 @@ class TestFileUtils < Test::Unit::TestCase return unless uid_1 and uid_2 touch 'tmp/a' - exception = assert_raise(Errno::EPERM) { + assert_raise(Errno::EPERM) { chown uid_1, nil, 'tmp/a' chown uid_2, nil, 'tmp/a' } diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index a9de376a2b..96e340ca67 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -222,7 +222,7 @@ class TestIO_Console < Test::Unit::TestCase end else def test_sync - r, w, pid = PTY.spawn(EnvUtil.rubybin, "-rio/console", "-e", "p IO.console.class") + r, _, pid = PTY.spawn(EnvUtil.rubybin, "-rio/console", "-e", "p IO.console.class") rescue RuntimeError skip $! else