1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
hsbt 2014-02-24 09:12:18 +00:00
parent 9d14ea97d9
commit fa7b849f94
4 changed files with 9 additions and 3 deletions

View file

@ -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+

View file

@ -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

View file

@ -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'
}

View file

@ -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