summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_settracefunc.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb
index d3b2441e21..8b0e08fc97 100644
--- a/test/ruby/test_settracefunc.rb
+++ b/test/ruby/test_settracefunc.rb
@@ -2583,6 +2583,7 @@ CODE
def test_enable_target_thread
events = []
TracePoint.new(:line) do |tp|
+ next unless tp.path == __FILE__
events << Thread.current
end.enable(target_thread: Thread.current) do
_a = 1
@@ -2596,6 +2597,7 @@ CODE
events = []
tp = TracePoint.new(:line) do |tp|
+ next unless tp.path == __FILE__
events << Thread.current
end