diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | test/fiddle/test_function.rb | 2 | ||||
-rw-r--r-- | test/fileutils/test_fileutils.rb | 2 | ||||
-rw-r--r-- | test/io/console/test_io_console.rb | 2 |
4 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,9 @@ +Mon Feb 24 18:10:02 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com> + + * 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 <e@80x24.org> * 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 |