From 02ecc3c8550af1aab7916975e7019b2a3ffe8591 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 31 Oct 2023 10:44:53 +0900 Subject: [PATCH] Disable wrong test --- spec/ruby/library/openssl/kdf/pbkdf2_hmac_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/ruby/library/openssl/kdf/pbkdf2_hmac_spec.rb b/spec/ruby/library/openssl/kdf/pbkdf2_hmac_spec.rb index ebf71482de..000aa0c113 100644 --- a/spec/ruby/library/openssl/kdf/pbkdf2_hmac_spec.rb +++ b/spec/ruby/library/openssl/kdf/pbkdf2_hmac_spec.rb @@ -154,7 +154,7 @@ describe "OpenSSL::KDF.pbkdf2_hmac" do }.should raise_error(ArgumentError, 'missing keywords: :salt, :iterations, :length, :hash') end - +=begin guard -> { OpenSSL::OPENSSL_VERSION_NUMBER < 0x30000000 } do it "treats 0 or less iterations as a single iteration" do salt = "\x00".b * 16 @@ -169,6 +169,7 @@ describe "OpenSSL::KDF.pbkdf2_hmac" do key_negative.should == key1 end end +=end guard -> { OpenSSL::OPENSSL_VERSION_NUMBER >= 0x30000000 } do it "raises an OpenSSL::KDF::KDFError for 0 or less iterations" do