summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--test/test_pty.rb6
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 7873c6cf0b..192529cb87 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Feb 17 11:28:40 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
+
+ * test/test_pty.rb: ignore warnings to unused variables.
+
Mon Feb 17 11:27:36 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* test/test_find.rb: remove unused variables.
diff --git a/test/test_pty.rb b/test/test_pty.rb
index b6ce684509..1ec383d04b 100644
--- a/test/test_pty.rb
+++ b/test/test_pty.rb
@@ -12,7 +12,7 @@ class TestPTY < Test::Unit::TestCase
RUBY = EnvUtil.rubybin
def test_spawn_without_block
- r, w, pid = PTY.spawn(RUBY, '-e', 'puts "a"')
+ r, _, pid = PTY.spawn(RUBY, '-e', 'puts "a"')
rescue RuntimeError
skip $!
else
@@ -58,7 +58,7 @@ class TestPTY < Test::Unit::TestCase
assert_equal(2, ret.length)
assert_equal(IO, ret[0].class)
assert_equal(File, ret[1].class)
- master, slave = ret
+ _, slave = ret
assert(slave.tty?)
assert(File.chardev?(slave.path))
ensure
@@ -77,7 +77,7 @@ class TestPTY < Test::Unit::TestCase
assert_equal(2, ret.length)
assert_equal(IO, ret[0].class)
assert_equal(File, ret[1].class)
- master, slave = ret
+ _, slave = ret
assert(slave.tty?)
assert(File.chardev?(slave.path))
x