ruby-changes:13590
From: nobu <ko1@a...>
Date: Fri, 16 Oct 2009 18:42:36 +0900 (JST)
Subject: [ruby-changes:13590] Ruby:r25371 (trunk): * bootstraptest/test_gc.rb: added tests based on
nobu 2009-10-16 18:42:20 +0900 (Fri, 16 Oct 2009) New Revision: 25371 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25371 Log: * bootstraptest/test_gc.rb: added tests based on [ruby-dev:39484] from wanabe <s.wanabe AT gmail.com>. Added files: trunk/bootstraptest/test_gc.rb Modified files: trunk/ChangeLog Index: ChangeLog =================================================================== --- ChangeLog (revision 25370) +++ ChangeLog (revision 25371) @@ -1,3 +1,8 @@ +Fri Oct 16 18:42:18 2009 Nobuyoshi Nakada <nobu@r...> + + * bootstraptest/test_gc.rb: added tests based on [ruby-dev:39484] + from wanabe <s.wanabe AT gmail.com>. + Fri Oct 16 16:09:01 2009 NAKAMURA Usaku <usa@r...> * win32/win32.c (rb_w32_spawn): `\'' is also quote character. Index: bootstraptest/test_gc.rb =================================================================== --- bootstraptest/test_gc.rb (revision 0) +++ bootstraptest/test_gc.rb (revision 25371) @@ -0,0 +1,34 @@ +assert_normal_exit %q{ +a = [] +ms = "a".."k" +("A".."Z").each do |mod| + mod = eval("module #{mod}; self; end") + ms.each do |meth| + iseq = RubyVM::InstructionSequence.compile("module #{mod}; def #{meth}; end; end") + GC.stress = true + iseq.eval + GC.stress = false + end + o = Object.new.extend(mod) + ms.each do |meth| + o.send(meth) + end +end +}, '[ruby-dev:39453]' + +assert_normal_exit %q{ +a = [] +ms = "a".."k" +("A".."Z").each do |mod| + mod = eval("module #{mod}; self; end") + ms.each do |meth| + GC.stress = true + mod.module_eval {define_method(meth) {}} + GC.stress = false + end + o = Object.new.extend(mod) + ms.each do |meth| + o.send(meth) + end +end +}, '[ruby-dev:39453]' Property changes on: bootstraptest/test_gc.rb ___________________________________________________________________ Name: svn:eol-style + LF -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/