aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-24 09:12:18 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-24 09:12:18 +0000
commitfa7b849f946c37422d27ce601582a7aa24eed0e3 (patch)
treee59a70b67d1ad908212efcfa9b328914367b218d
parent9d14ea97d91fd61bd58472072ee7dc86253c8fd2 (diff)
downloadruby-fa7b849f946c37422d27ce601582a7aa24eed0e3.tar.gz
* 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
-rw-r--r--ChangeLog6
-rw-r--r--test/fiddle/test_function.rb2
-rw-r--r--test/fileutils/test_fileutils.rb2
-rw-r--r--test/io/console/test_io_console.rb2
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 <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