Skip win32ole tests without Windows platform

This commit is contained in:
Hiroshi SHIBATA 2025-01-16 09:39:14 +09:00
parent 4e563d9c51
commit 8d319edf38
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2
Notes: git 2025-01-16 04:07:36 +00:00

View File

@ -62,6 +62,9 @@ File.foreach("#{gem_dir}/bundled_gems") do |line|
when "test-unit"
test_command = "#{ruby} -C #{gem_dir}/src/#{gem} test/run-test.rb"
when "win32ole"
next unless /mswin|mingw/ =~ RUBY_PLATFORM
end
if load_path