ruby-changes:33085
From: hsbt <ko1@a...>
Date: Mon, 24 Feb 2014 18:12:22 +0900 (JST)
Subject: [ruby-changes:33085] hsbt:r45164 (trunk): * test/fiddle/test_function.rb: remove unused variables.
hsbt 2014-02-24 18:12:18 +0900 (Mon, 24 Feb 2014) New Revision: 45164 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45164 Log: * test/fiddle/test_function.rb: remove unused variables. * test/fileutils/test_fileutils.rb: ditto. * test/io/console/test_io_console.rb: ditto. Modified files: trunk/ChangeLog trunk/test/fiddle/test_function.rb trunk/test/fileutils/test_fileutils.rb trunk/test/io/console/test_io_console.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 45163) +++ ChangeLog (revision 45164) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Feb 24 18:10:02 2014 SHIBATA Hiroshi <shibata.hiroshi@g...> + + * 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@8...> * configure.in: use -Wno-packed-bitfield-compat for GCC 4.4+ Index: test/fileutils/test_fileutils.rb =================================================================== --- test/fileutils/test_fileutils.rb (revision 45163) +++ test/fileutils/test_fileutils.rb (revision 45164) @@ -1170,7 +1170,7 @@ class TestFileUtils < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/fileutils/test_fileutils.rb#L1170 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' } Index: test/fiddle/test_function.rb =================================================================== --- test/fiddle/test_function.rb (revision 45163) +++ test/fiddle/test_function.rb (revision 45164) @@ -59,7 +59,7 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/test/fiddle/test_function.rb#L59 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 Index: test/io/console/test_io_console.rb =================================================================== --- test/io/console/test_io_console.rb (revision 45163) +++ test/io/console/test_io_console.rb (revision 45164) @@ -222,7 +222,7 @@ class TestIO_Console < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L222 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/