summaryrefslogtreecommitdiff
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2021-12-27 22:22:09 -0800
committerGitHub <noreply@github.com>2021-12-27 22:22:09 -0800
commiteb49aa311932665ce7ce67fb461e288f46b83c84 (patch)
treea24d683fa3b77a3b5a53aebb9adf586d3d498577 /test/ruby/test_rubyoptions.rb
parenta6e5d70346adc84ffde2d1c153ffb5b39dd2d388 (diff)
Fix test_rubyoptions for MinGW (#5363)
* Fix test_rubyoptions for MinGW follows up a74a2f456ad549025861be80f50cc3f0dd6646dd * Require jit_support * Fix MinGW platform * Handle MinGW UCRT and fix the prefix * Make it more robust
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 0f73eb1682..665d93fc16 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -233,7 +233,7 @@ class TestRubyOptions < Test::Unit::TestCase
%w(--version --jit --disable=jit),
%w(--version --enable=jit --disable=jit),
%w(--version --enable-jit --disable-jit),
- ] unless /^x86_64|mswin64/ =~ RUBY_PLATFORM),
+ ] unless JITSupport.yjit_supported?),
].each do |args|
assert_in_out_err([env] + args) do |r, e|
assert_match(VERSION_PATTERN, r[0])
@@ -251,7 +251,7 @@ class TestRubyOptions < Test::Unit::TestCase
%w(--version --jit),
%w(--version --enable=jit),
%w(--version --enable-jit),
- ] unless /^x86_64|mswin64/ =~ RUBY_PLATFORM),
+ ] unless JITSupport.yjit_supported?),
].each do |args|
assert_in_out_err([env] + args) do |r, e|
assert_match(VERSION_PATTERN_WITH_JIT, r[0])