summaryrefslogtreecommitdiff
path: root/test/rubygems
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-04-04 10:43:24 +0900
committergit <svn-admin@ruby-lang.org>2023-04-04 06:08:04 +0000
commit822f01b36c7f9bf3b9f36eba3a508844908b7902 (patch)
treeee0bd64a53e25a950243bbded0f289ed4fb405e8 /test/rubygems
parent6a4087702bb8ceecdc831fbe8ff230dc988e6e96 (diff)
downloadruby-822f01b36c7f9bf3b9f36eba3a508844908b7902.tar.gz
[rubygems/rubygems] Disabled to test rustc with msys2 platform.
https://github.com/rubygems/rubygems/actions/runs/4598776839/jobs/8123290246 https://github.com/rubygems/rubygems/commit/5c3b0a112e
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/helper.rb14
-rw-r--r--test/rubygems/test_gem_ext_cargo_builder.rb1
2 files changed, 15 insertions, 0 deletions
diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb
index 2442422f64..692d36ec8b 100644
--- a/test/rubygems/helper.rb
+++ b/test/rubygems/helper.rb
@@ -1176,6 +1176,20 @@ Also, a list:
end
##
+ # Is this test being run on a version of Ruby built with mingw?
+
+ def self.mingw_windows?
+ RUBY_PLATFORM.match("mingw")
+ end
+
+ ##
+ # Is this test being run on a version of Ruby built with mingw?
+
+ def mingw_windows?
+ RUBY_PLATFORM.match("mingw")
+ end
+
+ ##
# Is this test being run on a ruby/ruby repository?
#
diff --git a/test/rubygems/test_gem_ext_cargo_builder.rb b/test/rubygems/test_gem_ext_cargo_builder.rb
index 614ae9eeaf..e07d6a24c2 100644
--- a/test/rubygems/test_gem_ext_cargo_builder.rb
+++ b/test/rubygems/test_gem_ext_cargo_builder.rb
@@ -145,6 +145,7 @@ class TestGemExtCargoBuilder < Gem::TestCase
system(@rust_envs, "cargo", "-V", out: IO::NULL, err: [:child, :out])
pend "cargo not present" unless $?.success?
pend "ruby.h is not provided by ruby repo" if ruby_repo?
+ pend "rust toolchain of mingw is broken" if mingw_windows?
end
def assert_ffi_handle(bundle, name)