ruby-changes:50868
From: nobu <ko1@a...>
Date: Tue, 3 Apr 2018 19:50:52 +0900 (JST)
Subject: [ruby-changes:50868] nobu:r63075 (trunk): Reproducible test for [Feature#14370] @ [Bug #14660]
nobu 2018-04-03 19:50:47 +0900 (Tue, 03 Apr 2018) New Revision: 63075 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63075 Log: Reproducible test for [Feature#14370] @ [Bug #14660] Modified files: trunk/KNOWNBUGS.rb Index: KNOWNBUGS.rb =================================================================== --- KNOWNBUGS.rb (revision 63074) +++ KNOWNBUGS.rb (revision 63075) @@ -5,3 +5,25 @@ https://github.com/ruby/ruby/blob/trunk/KNOWNBUGS.rb#L5 # This test file includes tests which point out known bugs. # So all tests will cause failure. # +assert_normal_exit("#{<<~"begin;"}\n#{<<~'end;#1'}", timeout: 5) +begin; + str = "#{<<~"begin;"}\n#{<<~'end;'}" + begin; + class P + def p; end + def q; end + E = "" + N = "#{E}" + attr_reader :i + undef p + undef q + remove_const :E + remove_const :N + end + end; + iseq = RubyVM::InstructionSequence.compile(str) + 100.times {|i| + bin = iseq.to_binary + RubyVM::InstructionSequence.load_from_binary(bin).eval + } +end;#1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/