Skip to content

Commit 027de67

Browse files
test_fips.rb: account for AWS-LC's FIPS mode
AWS-LC's FIPS mode is decided at compile time. FIPS in AWS-LC can't be toggled on and off like OpenSSL, so tests that attempt to do so are incompatible.
1 parent 9daecee commit 027de67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/openssl/test_fips.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ def test_fips_mode_get_is_false_on_fips_mode_disabled
2828
end
2929

3030
def test_fips_mode_is_reentrant
31+
return if aws_lc? # AWS-LC's FIPS mode is decided at compile time.
32+
3133
assert_separately(["-ropenssl"], <<~"end;")
3234
OpenSSL.fips_mode = false
3335
OpenSSL.fips_mode = false
3436
end;
3537
end
3638

3739
def test_fips_mode_get_with_fips_mode_set
38-
omit('OpenSSL is not FIPS-capable') unless OpenSSL::OPENSSL_FIPS
40+
omit('OpenSSL is not FIPS-capable') unless OpenSSL::OPENSSL_FIPS and !aws_lc? # AWS-LC's FIPS mode is decided at compile time.
3941

4042
assert_separately(["-ropenssl"], <<~"end;")
4143
begin

0 commit comments

Comments
 (0)