diff --git a/test/rubygems/test_gem_commands_exec_command.rb b/test/rubygems/test_gem_commands_exec_command.rb index 1f94113d6c..5e88249ac7 100644 --- a/test/rubygems/test_gem_commands_exec_command.rb +++ b/test/rubygems/test_gem_commands_exec_command.rb @@ -216,7 +216,7 @@ class TestGemCommandsExecCommand < Gem::TestCase def test_gem_with_platform_and_platform_dependencies pend "extensions don't quite work on jruby" if Gem.java_platform? - pend "terminates on mswin" if Gem.win_platform? && ruby_repo? + pend "terminates on mswin" if vc_windows? && ruby_repo? spec_fetcher do |fetcher| fetcher.download "a", 2 do |s| diff --git a/test/rubygems/test_gem_ext_builder.rb b/test/rubygems/test_gem_ext_builder.rb index 01b40445c5..3decab78b0 100644 --- a/test/rubygems/test_gem_ext_builder.rb +++ b/test/rubygems/test_gem_ext_builder.rb @@ -105,7 +105,7 @@ install: end def test_build_extensions - pend if RUBY_PLATFORM.include?("mswin") && ENV.key?("GITHUB_ACTIONS") # not working from the beginning + pend "terminates on mswin" if vc_windows? && ruby_repo? @spec.extensions << "ext/extconf.rb" ext_dir = File.join @spec.gem_dir, "ext" @@ -141,7 +141,7 @@ install: end def test_build_extensions_with_gemhome_with_space - pend if RUBY_PLATFORM.include?("mswin") && ENV.key?("GITHUB_ACTIONS") # not working from the beginning + pend "terminates on mswin" if vc_windows? && ruby_repo? new_gemhome = File.join @tempdir, "gem home" File.rename(@gemhome, new_gemhome) @gemhome = new_gemhome @@ -162,7 +162,7 @@ install: false end end - pend if RUBY_PLATFORM.include?("mswin") && ENV.key?("GITHUB_ACTIONS") # not working from the beginning + pend "terminates on mswin" if vc_windows? && ruby_repo? @spec.extensions << "ext/extconf.rb" diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb index fc9772b92e..95f825e170 100644 --- a/test/rubygems/test_gem_installer.rb +++ b/test/rubygems/test_gem_installer.rb @@ -1496,7 +1496,7 @@ gem 'other', version def test_install_extension_and_script pend "Makefile creation crashes on jruby" if Gem.java_platform? - pend if RUBY_PLATFORM.include?("mswin") && ENV.key?("GITHUB_ACTIONS") # not working from the beginning + pend "terminates on mswin" if vc_windows? && ruby_repo? @spec = setup_base_spec @spec.extensions << "extconf.rb" diff --git a/test/rubygems/test_gem_resolver_git_specification.rb b/test/rubygems/test_gem_resolver_git_specification.rb index 4e3df10fb9..621333d3bf 100644 --- a/test/rubygems/test_gem_resolver_git_specification.rb +++ b/test/rubygems/test_gem_resolver_git_specification.rb @@ -65,7 +65,7 @@ class TestGemResolverGitSpecification < Gem::TestCase def test_install_extension pend if Gem.java_platform? - pend if RUBY_PLATFORM.include?("mswin") && ENV.key?("GITHUB_ACTIONS") # not working from the beginning + pend "terminates on mswin" if vc_windows? && ruby_repo? name, _, repository, = git_gem "a", 1 do |s| s.extensions << "ext/extconf.rb" end