mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
runner.rb: instance variable
* test/runner.rb (before_setup, after_teardown): use an instance variable instead of a class variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dbf2578656
commit
664d209de3
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ module Test::Unit
|
|||
module ZombieHunter
|
||||
|
||||
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]}
|
||||
end
|
||||
|
||||
def after_teardown
|
||||
|
@ -30,7 +30,7 @@ module Test::Unit
|
|||
|
||||
# detect zombie traces.
|
||||
assert_equal(
|
||||
@@tracepoint_captured_stat,
|
||||
@tracepoint_captured_stat,
|
||||
TracePoint.stat.map{|k, (activated, deleted)| [k, activated]},
|
||||
"The number of active trace events was changed"
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue