8000 Fix flaky TestSetTraceFunc#test_remove_in_trace by filtering trace events by ono-max · Pull Request #11368 · ruby/ruby · GitHub
[go: up one dir, main page]

Skip to content

Fix flaky TestSetTraceFunc#test_remove_in_trace by filtering trace events 8000 #11368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions test/ruby/test_settracefunc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,9 @@ def test_remove_in_trace
bug3921 = '[ruby-dev:42350]'
ok = false
func = lambda{|e, f, l, i, b, k|
# In parallel testing, unexpected events like IO operations may be traced,
# so we filter out events here.
next unless f == __FILE__
set_trace_func(nil)
ok = eval("self", b)
}
Expand Down
0