[前][次][番号順一覧][スレッド一覧]

ruby-changes:71176

From: nagachika <ko1@a...>
Date: Sun, 13 Feb 2022 17:03:05 +0900 (JST)
Subject: [ruby-changes:71176] 7cd359261e (ruby_3_0): skip some test using openssl to cease failure on GitHub Actions for MinGW.

https://git.ruby-lang.org/ruby.git/commit/?id=7cd359261e

From 7cd359261e2427dbed1e721e982043a1ebc2cdbc Mon Sep 17 00:00:00 2001
From: nagachika <nagachika@r...>
Date: Sun, 13 Feb 2022 17:02:39 +0900
Subject: skip some test using openssl to cease failure on GitHub Actions for
 MinGW.

---
 test/net/http/test_https.rb | 5 +++++
 test/openssl/test_cipher.rb | 6 ++++++
 version.h                   | 2 +-
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb
index e9aee15bd3..7b97e39586 100644
--- a/test/net/http/test_https.rb
+++ b/test/net/http/test_https.rb
@@ -143,6 +143,11 @@ class TestNetHTTPS < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/http/test_https.rb#L143
     # See https://github.com/openssl/openssl/pull/5967 for details.
     skip if OpenSSL::OPENSSL_LIBRARY_VERSION =~ /OpenSSL 1.1.0h/
 
+    # FIXME: GitHub Actions for MinGW failed. Maybe it's because of OpenSSL on MiNGW
+    if /mingw/ =~ RUBY_PLATFORM
+      skip "Skip net/https test using openssl on MinGW"
+    end
+
     http = Net::HTTP.new("localhost", config("port"))
     http.use_ssl = true
     http.cert_store = TEST_STORE
diff --git a/test/openssl/test_cipher.rb b/test/openssl/test_cipher.rb
index 3652f9ca74..ef8c4f3a4a 100644
--- a/test/openssl/test_cipher.rb
+++ b/test/openssl/test_cipher.rb
@@ -212,6 +212,12 @@ class OpenSSL::TestCipher < OpenSSL::TestCase https://github.com/ruby/ruby/blob/trunk/test/openssl/test_cipher.rb#L212
     ct2 = ct[0..-2] << ct[-1].succ
     cipher = new_decryptor("aes-128-ccm", **kwargs, ccm_data_len: ct2.length, auth_tag: tag, auth_data: aad)
     assert_raise(OpenSSL::Cipher::CipherError) { cipher.update(ct2) }
+  rescue OpenSSL::Cipher::CipherError
+    if /mingw/i =~ RUBY_PLATFORM
+      omit "skip on OpenSSL::Cipher::CipherError from 'ccm_data_len=': Maybe it's because of OpenSSL in MinGW"
+    else
+      raise
+    end
   end if has_cipher?("aes-128-ccm") &&
          OpenSSL::Cipher.new("aes-128-ccm").authenticated? &&
          OpenSSL::OPENSSL_VERSION_NUMBER >= 0x1010103f # version >= 1.1.1c
diff --git a/version.h b/version.h
index afe8ca768f..65aa52abe7 100644
--- a/version.h
+++ b/version.h
@@ -12,7 +12,7 @@ https://github.com/ruby/ruby/blob/trunk/version.h#L12
 # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
 #define RUBY_VERSION_TEENY 4
 #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
-#define RUBY_PATCHLEVEL 174
+#define RUBY_PATCHLEVEL 175
 
 #define RUBY_RELEASE_YEAR 2022
 #define RUBY_RELEASE_MONTH 2
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]