From 2f8ab8e4703936f650d8dfc0ef69c174b6062761 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Tue, 3 Feb 2026 14:54:51 +0900 Subject: filter TracePoint :line events by file in target_thread test to avoid such failure: ``` 1) Failure: TestSetTraceFunc#test_enable_target_thread [/tmp/ruby/src/trunk/test/ruby/test_settracefunc.rb:2595]: <[#, #, #]> expected but was <[#, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #]>. ``` --- test/ruby/test_settracefunc.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby') 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 -- cgit v1.2.3