summaryrefslogtreecommitdiff
path: root/test/openssl/test_fips.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/openssl/test_fips.rb')
-rw-r--r--test/openssl/test_fips.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/openssl/test_fips.rb b/test/openssl/test_fips.rb
index 4a3dd43a41..683e0011e8 100644
--- a/test/openssl/test_fips.rb
+++ b/test/openssl/test_fips.rb
@@ -28,14 +28,19 @@ class OpenSSL::TestFIPS < OpenSSL::TestCase
end
def test_fips_mode_is_reentrant
- assert_separately(["-ropenssl"], <<~"end;")
+ return if aws_lc? # AWS-LC's FIPS mode is decided at compile time.
+
+ assert_ruby_status(["-ropenssl"], <<~"end;")
OpenSSL.fips_mode = false
OpenSSL.fips_mode = false
end;
end
def test_fips_mode_get_with_fips_mode_set
- omit('OpenSSL is not FIPS-capable') unless OpenSSL::OPENSSL_FIPS
+ return if aws_lc? # AWS-LC's FIPS mode is decided at compile time.
+ unless ENV["TEST_RUBY_OPENSSL_FIPS_ENABLED"]
+ omit "Only for FIPS mode environment"
+ end
assert_separately(["-ropenssl"], <<~"end;")
begin