aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/test
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto/test')
-rw-r--r--lib/crypto/test/blowfish_SUITE.erl10
-rw-r--r--lib/crypto/test/crypto_SUITE.erl10
2 files changed, 14 insertions, 6 deletions
diff --git a/lib/crypto/test/blowfish_SUITE.erl b/lib/crypto/test/blowfish_SUITE.erl
index c45aae6916..a78f8fe39a 100644
--- a/lib/crypto/test/blowfish_SUITE.erl
+++ b/lib/crypto/test/blowfish_SUITE.erl
@@ -119,9 +119,13 @@ init_per_group(fips, Config) ->
enabled ->
Config;
not_enabled ->
- true = crypto:enable_fips_mode(true),
- enabled = crypto:info_fips(),
- Config;
+ case crypto:enable_fips_mode(true) of
+ true ->
+ enabled = crypto:info_fips(),
+ Config;
+ false ->
+ {skip, "Failed to enable FIPS mode"}
+ end;
not_supported ->
{skip, "FIPS mode not supported"}
end;
diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl
index ec8c157d37..02b25ce62f 100644
--- a/lib/crypto/test/crypto_SUITE.erl
+++ b/lib/crypto/test/crypto_SUITE.erl
@@ -197,9 +197,13 @@ init_per_group(fips, Config) ->
enabled ->
FIPSConfig;
not_enabled ->
- true = crypto:enable_fips_mode(true),
- enabled = crypto:info_fips(),
- FIPSConfig;
+ case crypto:enable_fips_mode(true) of
+ true ->
+ enabled = crypto:info_fips(),
+ FIPSConfig;
+ false ->
+ {skip, "Failed to enable FIPS mode"}
+ end;
not_supported ->
{skip, "FIPS mode not supported"}
end;