diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 05:57:35 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 05:57:35 +0000 |
commit | 479e39619240d7723f0573add301d71125df6933 (patch) | |
tree | 748ed7174937385aaf8b418df2163b7f48426a06 /test/ruby/test_settracefunc.rb | |
parent | 89c889d4e72eb39bb70734d2360b9607c1099bdb (diff) | |
download | ruby-479e39619240d7723f0573add301d71125df6933.tar.gz |
* vm_trace.c (rb_tracepoint_attr_method_id):
rename TracePoint#id to TracePoint#method_id.
* include/ruby/debug.h: ditto.
* test/ruby/test_settracefunc.rb: ditto,
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_settracefunc.rb')
-rw-r--r-- | test/ruby/test_settracefunc.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb index cbbfea684a..0c08e7f245 100644 --- a/test/ruby/test_settracefunc.rb +++ b/test/ruby/test_settracefunc.rb @@ -418,7 +418,7 @@ class TestSetTraceFunc < Test::Unit::TestCase eval <<-EOF.gsub(/^.*?: /, ""), nil, 'xyzzy' 1: trace = TracePoint.trace(*trace_events){|tp| - 2: events << [tp.event, tp.lineno, tp.path, tp.defined_class, tp.id, tp.self, tp.binding.eval("local_var"), get_data.(tp)] + 2: events << [tp.event, tp.lineno, tp.path, tp.defined_class, tp.method_id, tp.self, tp.binding.eval("local_var"), get_data.(tp)] 3: } 4: 1.times{|;local_var| local_var = :inner 5: tap{} @@ -587,7 +587,7 @@ class TestSetTraceFunc < Test::Unit::TestCase assert_raise(RuntimeError){tp_store.lineno} assert_raise(RuntimeError){tp_store.event} assert_raise(RuntimeError){tp_store.path} - assert_raise(RuntimeError){tp_store.id} + assert_raise(RuntimeError){tp_store.method_id} assert_raise(RuntimeError){tp_store.defined_class} assert_raise(RuntimeError){tp_store.binding} assert_raise(RuntimeError){tp_store.self} @@ -601,7 +601,7 @@ class TestSetTraceFunc < Test::Unit::TestCase def test_tracepoint_enable ary = [] trace = TracePoint.new(:call){|tp| - ary << tp.id + ary << tp.method_id } foo trace.enable{ @@ -614,7 +614,7 @@ class TestSetTraceFunc < Test::Unit::TestCase def test_tracepoint_disable ary = [] trace = TracePoint.trace(:call){|tp| - ary << tp.id + ary << tp.method_id } foo trace.disable{ |