Skip to content

Commit 02d6882

Browse files
authored
Merge pull request #862 from junaruga/wip/use-env-test-ruby-openssl-fips-enabled
Use ENV["TEST_RUBY_OPENSSL_FIPS_ENABLED"] instead of OpenSSL::OPENSSL_FIPS.
2 parents d725783 + fd3e3e7 commit 02d6882

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/openssl/test_fips.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ def test_fips_mode_is_reentrant
3737
end
3838

3939
def test_fips_mode_get_with_fips_mode_set
40-
omit('OpenSSL is not FIPS-capable') unless OpenSSL::OPENSSL_FIPS and !aws_lc? # AWS-LC's FIPS mode is decided at compile time.
40+
return if aws_lc? # AWS-LC's FIPS mode is decided at compile time.
41+
unless ENV["TEST_RUBY_OPENSSL_FIPS_ENABLED"]
42+
omit "Only for FIPS mode environment"
43+
end
4144

4245
assert_separately(["-ropenssl"], <<~"end;")
4346
begin

0 commit comments

Comments
 (0)