From b1ad79774de9789a2dd60c19c907356fa823ebd9 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 4 Oct 2012 10:00:56 +0000 Subject: * test/ruby/test_settracefunc.rb (test_tracepoint): remove unused test case. (this test case is redefined by newer tests) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 +++++ test/ruby/test_settracefunc.rb | 53 ------------------------------------------ 2 files changed, 6 insertions(+), 53 deletions(-) diff --git a/ChangeLog b/ChangeLog index 784e1dd113..74351a99e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Oct 4 18:59:14 2012 Koichi Sasada + + * test/ruby/test_settracefunc.rb (test_tracepoint): + remove unused test case. + (this test case is redefined by newer tests) + Thu Oct 4 17:24:51 2012 Narihiro Nakamura * gc.c (rb_objspace_call_finalizer): call gc_mark_stacked_objects diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb index d24bcccd4d..64999ddae2 100644 --- a/test/ruby/test_settracefunc.rb +++ b/test/ruby/test_settracefunc.rb @@ -398,59 +398,6 @@ class TestSetTraceFunc < Test::Unit::TestCase define_method(:method_added, Module.method(:method_added)) end - def test_tracepoint - events = [] - trace = nil - xyzzy = nil - local_var = :outer - eval <<-EOF.gsub(/^.*?: /, ""), nil, 'xyzzy' - 1: trace = TracePoint.trace(){|tp| - 2: events << [tp.event, tp.line, tp.file, tp.klass, tp.id, tp.self, tp.binding.eval("local_var")] - 3: } - 4: 1.times{|;local_var| local_var = :inner - 5: tap{} - 6: } - 7: class XYZZY - 8: local_var = :XYZZY_outer - 9: def foo - 10: local_var = :XYZZY_foo - 11: bar - 12: end - 13: def bar - 14: local_var = :XYZZY_bar - 15: tap{} - 16: end - 17: end - 18: xyzzy = XYZZY.new - 19: xyzzy.foo - 20: trace.untrace - EOF - - events.each{|ev| - STDERR.puts [ev[0], ev[1]].inspect - STDERR.puts ev.inspect - } - - [ - # - [:c_return, 1, "xyzzy", self.class, :trace, TracePoint, :outer], - [:line, 4, 'xyzzy', self.class, :test_tracepoint, self, :outer], - [:c_call, 4, 'xyzzy', Integer, :times, 1, :outer], - [:line, 4, 'xyzzy', self.class, :test_tracepoint, self, nil], - [:line, 5, 'xyzzy', self.class, :test_tracepoint, self, :inner], - [:c_call, 5, 'xyzzy', Kernel, :tap, self, :inner], - [:line, 7, 'xyzzy', self.class, :test_tracepoint, self, :outer], - [:c_call, 7, "xyzzy", Class, :new, TestSetTraceFunc::XYZZY, :outer], - [:c_call, 7, "xyzzy", BasicObject, :initialize, xyzzy, :outer], - [:line, 8, 'xyzzy', self.class, :test_tracepoint, self, :outer], - [:c_call, 9, 'xyzzy', TracePoint, :untrace, trace,:outer], - ].each{|e| - assert_equal e, events.shift - } - assert_equal [], events - end - - def trace_by_tracepoint *trace_events events = [] trace = nil -- cgit v1.2.3