From adfc8d6dbadbccef27d6ec78022650840c7604cc Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sun, 4 Aug 2019 11:05:50 +0900 Subject: [PATCH] Defer skip to avoid errors on ensure --- test/ruby/test_require.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index 8792cf51f1..4922d4dd26 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -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;"}"