@@ -168,14 +168,14 @@ def test_class
168168 events . shift )
169169 assert_equal ( [ "line" , 4 , __method__ , self . class ] ,
170170 events . shift )
171- assert_equal ( [ "c-call" , 4 , :const_added , Module ] ,
172- events . shift )
173- assert_equal ( [ "c-return" , 4 , :const_added , Module ] ,
174- events . shift )
175171 assert_equal ( [ "c-call" , 4 , :inherited , Class ] ,
176172 events . shift )
177173 assert_equal ( [ "c-return" , 4 , :inherited , Class ] ,
178174 events . shift )
175+ assert_equal ( [ "c-call" , 4 , :const_added , Module ] ,
176+ events . shift )
177+ assert_equal ( [ "c-return" , 4 , :const_added , Module ] ,
178+ events . shift )
179179 assert_equal ( [ "class" , 4 , nil , nil ] ,
180180 events . shift )
181181 assert_equal ( [ "line" , 5 , nil , nil ] ,
@@ -411,10 +411,10 @@ def test_thread_trace
411411
412412 [ [ "c-return" , 2 , :add_trace_func , Thread ] ,
413413 [ "line" , 3 , __method__ , self . class ] ,
414- [ "c-call" , 3 , :const_added , Module ] ,
415- [ "c-return" , 3 , :const_added , Module ] ,
416414 [ "c-call" , 3 , :inherited , Class ] ,
417415 [ "c-return" , 3 , :inherited , Class ] ,
416+ [ "c-call" , 3 , :const_added , Module ] ,
417+ [ "c-return" , 3 , :const_added , Module ] ,
418418 [ "class" , 3 , nil , nil ] ,
419419 [ "line" , 4 , nil , nil ] ,
420420 [ "c-call" , 4 , :method_added , Module ] ,
@@ -558,10 +558,10 @@ def trace_by_tracepoint *trace_events
558558 [ :line , 5 , 'xyzzy' , self . class , method , self , :inner , :nothing ] ,
559559 [ :c_return , 4 , "xyzzy" , Array , :reverse_each , [ 1 ] , nil , [ 1 ] ] ,
560560 [ :line , 7 , 'xyzzy' , self . class , method , self , :outer , :nothing ] ,
561- [ :c_call , 7 , "xyzzy" , Module , :const_added , TestSetTraceFunc , nil , :nothing ] ,
562- [ :c_return , 7 , "xyzzy" , Module , :const_added , TestSetTraceFunc , nil , nil ] ,
563561 [ :c_call , 7 , "xyzzy" , Class , :inherited , Object , nil , :nothing ] ,
564562 [ :c_return , 7 , "xyzzy" , Class , :inherited , Object , nil , nil ] ,
563+ [ :c_call , 7 , "xyzzy" , Module , :const_added , TestSetTraceFunc , nil , :nothing ] ,
564+ [ :c_return , 7 , "xyzzy" , Module , :const_added , TestSetTraceFunc , nil , nil ] ,
565565 [ :class , 7 , "xyzzy" , nil , nil , xyzzy . class , nil , :nothing ] ,
566566 [ :line , 8 , "xyzzy" , nil , nil , xyzzy . class , nil , :nothing ] ,
567567 [ :line , 9 , "xyzzy" , nil , nil , xyzzy . class , :XYZZY_outer , :nothing ] ,
0 commit comments