Skip to content

Commit f72eb70

Browse files
committed
Skip tests that suddenly started failing for MinGW
These test failures first appeared on irrelevant changes. It probably came from changes in GitHub Actions instead of CRuby's. Until we figure out how to fix these tests, let's skip them to make the CI usable.
1 parent 7237ded commit f72eb70

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

test/net/http/test_https.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ def test_session_reuse_but_expire
169169
omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 1.1.0h')
170170
omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 3.2.')
171171
omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 3.3.')
172+
omit "not working on MinGW" if /mingw/ =~ RUBY_PLATFORM
172173

173174
http = Net::HTTP.new(HOST, config("port"))
174175
http.use_ssl = true

test/openssl/test_x509req.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def test_public_key
3535
end
3636

3737
def test_version
38+
omit "not working on MinGW" if /mingw/ =~ RUBY_PLATFORM
3839
req = issue_csr(0, @dn, @rsa1024, OpenSSL::Digest.new('SHA256'))
3940
assert_equal(0, req.version)
4041
req = OpenSSL::X509::Request.new(req.to_der)

test/ruby/test_argf.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ def test_inplace_rename_impossible
267267
end
268268

269269
def test_inplace_nonascii
270+
omit "not working on MinGW" if /mingw/ =~ RUBY_PLATFORM
270271
ext = Encoding.default_external or
271272
omit "no default external encoding"
272273
t = nil

test/ruby/test_rubyoptions.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ def test_autosplit
347347
end
348348

349349
def test_chdir
350+
omit "not working on MinGW" if /mingw/ =~ RUBY_PLATFORM
350351
assert_in_out_err(%w(-C), "", [], /Can't chdir/)
351352

352353
assert_in_out_err(%w(-C test_ruby_test_rubyoptions_foobarbazqux), "", [], /Can't chdir/)
@@ -1043,6 +1044,7 @@ def test_command_line_glob_nonascii
10431044
end
10441045

10451046
def test_command_line_progname_nonascii
1047+
omit "not working on MinGW" if /mingw/ =~ RUBY_PLATFORM
10461048
bug10555 = '[ruby-dev:48752] [Bug #10555]'
10471049
name = expected = nil
10481050
unless (0x80..0x10000).any? {|c|
@@ -1094,6 +1096,7 @@ def assert_e_script_encoding(str, args = [])
10941096
# Since the codepage is shared all processes per conhost.exe, do
10951097
# not chcp, or parallel test may break.
10961098
def test_locale_codepage
1099+
omit "not working on MinGW" if /mingw/ =~ RUBY_PLATFORM
10971100
locale = Encoding.find("locale")
10981101
list = %W"\u{c7} \u{452} \u{3066 3059 3068}"
10991102
list.each do |s|

0 commit comments

Comments
 (0)