mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Reproducible test for [Feature#14370] @ [Bug #14660]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1751ea76a4
commit
02df45c4c4
1 changed files with 22 additions and 0 deletions
22
KNOWNBUGS.rb
22
KNOWNBUGS.rb
|
@ -5,3 +5,25 @@
|
|||
# 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue