diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-06-26 10:21:56 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-26 10:21:56 +0900 |
commit | 8070cb56db18966b7186255d46eef869e7fdd9cb (patch) | |
tree | 367b593b0fa77d93530136c6d0f626c0c7257a44 /test/ruby/test_settracefunc.rb | |
parent | 289a28e68f30e879760fd000833b512d506a0805 (diff) |
fix return event and opt_invokebuiltin_delegate_leave (#3256)
If :return event is specified for a opt_invokebuiltin_delegate_leave
and leave combination, the instructions should be
opt_invokebuiltin_delegate
trace_return
instructions. To make it, opt_invokebuiltin_delegate_leave
instruction will be changed to opt_invokebuiltin_delegate even if
it is not an event target instruction.
Notes
Notes:
Merged-By: ko1 <ko1@atdot.net>
Diffstat (limited to 'test/ruby/test_settracefunc.rb')
-rw-r--r-- | test/ruby/test_settracefunc.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb index 1515767a57..3106bea9cb 100644 --- a/test/ruby/test_settracefunc.rb +++ b/test/ruby/test_settracefunc.rb @@ -2299,7 +2299,6 @@ class TestSetTraceFunc < Test::Unit::TestCase assert_match /^0000 opt_invokebuiltin_delegate_leave /, out event = eval(EnvUtil.invoke_ruby(['-e', <<~'EOS'], '', true).first) - set_trace_func(proc {}); set_trace_func(nil) # Is it okay that this is required? TracePoint.new(:return) do |tp| p [tp.event, tp.method_id] end.enable do |