diff --git a/test/lib/tracepointchecker.rb b/test/lib/tracepointchecker.rb index 33f3a817c1..2d56e658ff 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