summaryrefslogtreecommitdiff
path: root/test/ruby/test_jit.rb
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-29 10:50:31 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-29 10:50:31 +0000
commit5049e4c5e8608848029710d441b5426766573a1c (patch)
tree0b9aab7c9699ac888d508494739ee8db406916ba /test/ruby/test_jit.rb
parentd8008fc29dd0551c7fa5625c91b7eae923d62939 (diff)
test_jit.rb: suppress random test failure
on mswin RubyCI by Permission Denied. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_jit.rb')
-rw-r--r--test/ruby/test_jit.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb
index 3f3bdc1960..d1c7351f50 100644
--- a/test/ruby/test_jit.rb
+++ b/test/ruby/test_jit.rb
@@ -607,9 +607,9 @@ class TestJIT < Test::Unit::TestCase
assert_equal(3, compactions.size, debug_info)
end
- if appveyor_mswin?
- # "Permission Denied" error is preventing to remove so file on AppVeyor.
- warn 'skipped to test directory emptiness in TestJIT#test_unload_units on AppVeyor mswin'
+ if RUBY_PLATFORM.match?(/mswin/)
+ # "Permission Denied" error is preventing to remove so file on AppVeyor/RubyCI.
+ skip 'Removing so file is randomly failing on AppVeyor/RubyCI mswin due to Permission Denied.'
else
# verify .o files are deleted on unload_units
assert_send([Dir, :empty?, dir], debug_info)
@@ -891,10 +891,6 @@ class TestJIT < Test::Unit::TestCase
private
- def appveyor_mswin?
- ENV['APPVEYOR'] == 'True' && RUBY_PLATFORM.match?(/mswin/)
- end
-
# The shortest way to test one proc
def assert_compile_once(script, result_inspect:, insns: [])
if script.match?(/\A\n.+\n\z/m)