* test/-ext-/debug/test_profile_frames.rb: rename class C to

something long name because one test depends on absence of
  class ::C.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2013-10-07 07:51:16 +00:00
Родитель d4939eef6c
Коммит 6b5d5e5322
2 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Mon Oct 7 16:47:27 2013 Koichi Sasada <ko1@atdot.net>
* test/-ext-/debug/test_profile_frames.rb: rename class C to
something long name because one test depends on absence of
class ::C.
Mon Oct 7 16:33:10 2013 Koichi Sasada <ko1@atdot.net> Mon Oct 7 16:33:10 2013 Koichi Sasada <ko1@atdot.net>
* ext/-test-/debug/profile_frames.c: * ext/-test-/debug/profile_frames.c:

Просмотреть файл

@ -1,7 +1,7 @@
require 'test/unit' require 'test/unit'
require '-test-/debug' require '-test-/debug'
class C class SampleClassForTestProfileFrames
def self.bar(block) def self.bar(block)
block.call block.call
end end
@ -14,7 +14,7 @@ end
class TestProfileFrames < Test::Unit::TestCase class TestProfileFrames < Test::Unit::TestCase
def test_profile_frames def test_profile_frames
frames = Fiber.new{ frames = Fiber.new{
Fiber.yield C.new.foo(lambda{ Bug::Debug.profile_frames(0, 10) }) Fiber.yield SampleClassForTestProfileFrames.new.foo(lambda{ Bug::Debug.profile_frames(0, 10) })
}.resume }.resume
assert_equal(4, frames.size) assert_equal(4, frames.size)
@ -33,8 +33,8 @@ class TestProfileFrames < Test::Unit::TestCase
] ]
classes = [ classes = [
TestProfileFrames, TestProfileFrames,
C, # singleton method SampleClassForTestProfileFrames, # singleton method
C, SampleClassForTestProfileFrames,
TestProfileFrames, TestProfileFrames,
] ]
singleton_method_p = [ singleton_method_p = [