summaryrefslogtreecommitdiff
path: root/test/lib/tracepointchecker.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-02 02:37:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-02 02:37:47 +0000
commit6d65806f8be4aa308793a80890815f31d8ad7fa1 (patch)
tree6f307c4c199a81576d0f94c9d01c72b9801c1e70 /test/lib/tracepointchecker.rb
parent163ecb32e9ffc94777eccfd3470dc8bf7d1f9f9b (diff)
tracepointchecker.rb: needs TracePoint
* test/lib/tracepointchecker.rb: available only if TracePoint is available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49097 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 4612e62..33f3a81 100644
--- a/test/lib/tracepointchecker.rb
+++ b/test/lib/tracepointchecker.rb
@@ -109,10 +109,10 @@ module TracePointChecker
raise "trace #{trace} should not be deactivated" unless trace.enabled?
}
end
-end
+end if defined?(TracePoint)
class ::Test::Unit::TestCase
include TracePointChecker::ZombieTraceHunter
-end
+end if defined?(TracePoint)
# TracePointChecker.start verbose: false