From 6b5d5e53223eb4c50832f6e1f24a66638131a44e Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 7 Oct 2013 07:51:16 +0000 Subject: [PATCH] * 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 --- ChangeLog | 6 ++++++ test/-ext-/debug/test_profile_frames.rb | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0a2d0a9c6f..47b44ad917 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Oct 7 16:47:27 2013 Koichi Sasada + + * 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 * ext/-test-/debug/profile_frames.c: diff --git a/test/-ext-/debug/test_profile_frames.rb b/test/-ext-/debug/test_profile_frames.rb index 05e4706eb6..854f3bc2db 100644 --- a/test/-ext-/debug/test_profile_frames.rb +++ b/test/-ext-/debug/test_profile_frames.rb @@ -1,7 +1,7 @@ require 'test/unit' require '-test-/debug' -class C +class SampleClassForTestProfileFrames def self.bar(block) block.call end @@ -14,7 +14,7 @@ end class TestProfileFrames < Test::Unit::TestCase def test_profile_frames 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 assert_equal(4, frames.size) @@ -33,8 +33,8 @@ class TestProfileFrames < Test::Unit::TestCase ] classes = [ TestProfileFrames, - C, # singleton method - C, + SampleClassForTestProfileFrames, # singleton method + SampleClassForTestProfileFrames, TestProfileFrames, ] singleton_method_p = [