Defer skip to avoid errors on ensure

This commit is contained in:
Takashi Kokubun 2019-08-04 11:05:50 +09:00
parent 7a75baa6e2
commit adfc8d6dba
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -503,11 +503,11 @@ class TestRequire < Test::Unit::TestCase
end
def test_race_exception
skip 'require has had a race condition since 5931857281ce45c1c277aa86d1588119ab00a955' if RubyVM::MJIT.enabled?
bug5754 = '[ruby-core:41618]'
path = nil
stderr = $stderr
verbose = $VERBOSE
skip 'require has had a race condition since 5931857281ce45c1c277aa86d1588119ab00a955' if RubyVM::MJIT.enabled?
Tempfile.create(%w"bug5754 .rb") {|tmp|
path = tmp.path
tmp.print "#{<<~"begin;"}\n#{<<~"end;"}"