From 8d86afa0f1aade40ff9eca0fd92f0a6a41222f75 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 1 Oct 2007 06:17:50 +0000 Subject: * gc.c (id2ref): T_VALUES is less than T_BLOCK. [ruby-dev:31911] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_knownbug.rb | 14 -------------- bootstraptest/test_objectspace.rb | 13 +++++++++++++ 2 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 bootstraptest/test_objectspace.rb (limited to 'bootstraptest') diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index f75a71459..5ac0cd11f 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -33,20 +33,6 @@ assert_normal_exit %q{ Marshal.load(Marshal.dump({"k"=>"v"}), lambda {|v| }) } -assert_normal_exit %q{ - eval("", TOPLEVEL_BINDING) - minobj = ObjectSpace.to_enum(:each_object).min {|a,b| a.object_id <=> b.object_id } - maxobj = ObjectSpace.to_enum(:each_object).max {|a,b| a.object_id <=> b.object_id } - minobj.object_id.upto(maxobj.object_id) {|id| - begin - o = ObjectSpace._id2ref(id) - rescue RangeError - next - end - o.inspect - } -}, '[ruby-dev:31911]' - assert_normal_exit %q{ require 'continuation' Fiber.new{ callcc{|c| @c = c } }.resume diff --git a/bootstraptest/test_objectspace.rb b/bootstraptest/test_objectspace.rb new file mode 100644 index 000000000..f138ac5f6 --- /dev/null +++ b/bootstraptest/test_objectspace.rb @@ -0,0 +1,13 @@ +assert_normal_exit %q{ + eval("", TOPLEVEL_BINDING) + minobj = ObjectSpace.to_enum(:each_object).min_by {|a| a.object_id } + maxobj = ObjectSpace.to_enum(:each_object).max_by {|a| a.object_id } + minobj.object_id.upto(maxobj.object_id) {|id| + begin + o = ObjectSpace._id2ref(id) + rescue RangeError + next + end + o.inspect if defined?(o.inspect) + } +}, '[ruby-dev:31911]' -- cgit