summaryrefslogtreecommitdiff
path: root/test/lib/tracepointchecker.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-30 10:11:02 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-30 10:11:02 +0000
commitb105cbc80986eb684a272788111f36f6624fedb7 (patch)
treea7b699d7fd0d3239dadc5fc492ae44105c55bf1e /test/lib/tracepointchecker.rb
parent48559765b1f23e37ce8527b5185eac1335902cbb (diff)
suppress warnings: assigned but unused variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib/tracepointchecker.rb')
-rw-r--r--test/lib/tracepointchecker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/tracepointchecker.rb b/test/lib/tracepointchecker.rb
index f90611b..4612e62 100644
--- a/test/lib/tracepointchecker.rb
+++ b/test/lib/tracepointchecker.rb
@@ -6,7 +6,7 @@ module TracePointChecker
module ZombieTraceHunter
def before_setup
- @tracepoint_captured_stat = TracePoint.stat.map{|k, (activated, deleted)| [k, activated]}
+ @tracepoint_captured_stat = TracePoint.stat.map{|k, (activated, _deleted)| [k, activated]}
super
end
@@ -17,7 +17,7 @@ module TracePointChecker
# detect zombie traces.
assert_equal(
@tracepoint_captured_stat,
- TracePoint.stat.map{|k, (activated, deleted)| [k, activated]},
+ TracePoint.stat.map{|k, (activated, _deleted)| [k, activated]},
"The number of active trace events was changed"
)
# puts "TracePoint - deleted: #{deleted}" if deleted > 0