diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-29 17:26:16 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-29 17:26:16 +0000 |
| commit | d61dc12982d9e935416d9ee850ebe0b8486b24a7 (patch) | |
| tree | 30d31011baaa743c780be4a286e2233584a9ec43 /test/ruby | |
| parent | 52c0eeefb597484a75d59deaa6e1dfb85a7f9432 (diff) | |
| download | ruby-d61dc12982d9e935416d9ee850ebe0b8486b24a7.tar.gz ruby-d61dc12982d9e935416d9ee850ebe0b8486b24a7.tar.xz ruby-d61dc12982d9e935416d9ee850ebe0b8486b24a7.zip | |
* vm.c, vm_core.h,vm_core.h, vm_dump.c, iseq.c: rename class name
VM -> RubyVM, and rename rb_cVM -> rb_cRubyVM.
"VM" is too short name for class.
* test/ruby/test_method.rb, test/ruby/test_settracefunc.rb: ditto.
* include/ruby/ruby.h: rb_cRubyVM, rb_cEnv, rb_cISeq should not be
exposed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_method.rb | 2 | ||||
| -rw-r--r-- | test/ruby/test_settracefunc.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index e0267d777..8ab9a4a96 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -70,7 +70,7 @@ class TestMethod < Test::Unit::TestCase def test_body o = Object.new def o.foo; end - assert_nothing_raised { VM::InstructionSequence.disasm(o.method(:foo)) } + assert_nothing_raised { RubyVM::InstructionSequence.disasm(o.method(:foo)) } end def test_new diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb index 1f260e003..7ef7d3b80 100644 --- a/test/ruby/test_settracefunc.rb +++ b/test/ruby/test_settracefunc.rb @@ -2,15 +2,15 @@ require 'test/unit' class TestSetTraceFunc < Test::Unit::TestCase def setup - @original_compile_option = VM::InstructionSequence.compile_option - VM::InstructionSequence.compile_option = { + @original_compile_option = RubyVM::InstructionSequence.compile_option + RubyVM::InstructionSequence.compile_option = { :trace_instruction => true, :specialized_instruction => false } end def teardown - VM::InstructionSequence.compile_option = @original_compile_option + RubyVM::InstructionSequence.compile_option = @original_compile_option end def test_c_call |
