summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib')
-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 33f3a817c1e..2d56e658ff4 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 if defined?(TracePoint)
+end if defined?(TracePoint.stat)
class ::Test::Unit::TestCase
include TracePointChecker::ZombieTraceHunter
-end if defined?(TracePoint)
+end if defined?(TracePointChecker)
# TracePointChecker.start verbose: false