Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
2592-crypto-Adjust-tests-for-extended-error-msg...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2592-crypto-Adjust-tests-for-extended-error-msgs.patch of Package erlang
From 28c8998b46dacd324b6a5cd1639f73efb2376f73 Mon Sep 17 00:00:00 2001 From: Hans Nilsson <hans@erlang.org> Date: Thu, 7 Apr 2022 09:10:46 +0200 Subject: [PATCH 2/7] crypto: Adjust tests for extended error msgs that are longer if the CRYPTO_DEVELOP_ERRORS flag is set. --- lib/crypto/test/crypto_SUITE.erl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl index e2396f9800..968a65318c 100644 --- a/lib/crypto/test/crypto_SUITE.erl +++ b/lib/crypto/test/crypto_SUITE.erl @@ -1274,7 +1274,7 @@ hash_equals(Config) when is_list(Config) -> true = crypto:hash_equals(<<"abc">>, <<"abc">>), false = crypto:hash_equals(<<"abc">>, <<"abe">>) catch - error:{notsup,{"hash_equals.c",_Line},"Unsupported CRYPTO_memcmp"} -> + error:{notsup,{"hash_equals.c",_Line},"Unsupported CRYPTO_memcmp"++_} -> {skip, "No CRYPTO_memcmp"} end. %%-------------------------------------------------------------------- @@ -4379,7 +4379,7 @@ bad_generate_key_name(_Config) -> bad_hash_name(_Config) -> ?chk_api_name(crypto:hash_init(foobar), - error:{badarg,{"hash.c",_},"Bad digest type"}). + error:{badarg,{"hash.c",_},"Bad digest type"++_}). bad_mac_name(_Config) -> ?chk_api_name(crypto:mac(foobar, <<1:1024>>, "nothing"), @@ -4387,15 +4387,15 @@ bad_mac_name(_Config) -> bad_sign_name(_Config) -> ?chk_api_name(crypto:sign(rsa, foobar, "nothing", <<1:1024>>), - error:{badarg, {"pkey.c",_}, "Bad digest type"}), + error:{badarg, {"pkey.c",_}, "Bad digest type"++_}), ?chk_api_name(crypto:sign(foobar, sha, "nothing", <<1:1024>>), - error:{badarg, {"pkey.c",_}, "Bad algorithm"}). + error:{badarg, {"pkey.c",_}, "Bad algorithm"++_}). bad_verify_name(_Config) -> ?chk_api_name(crypto:verify(rsa, foobar, "nothing", <<"nothing">>, <<1:1024>>), - error:{badarg,{"pkey.c",_},"Bad digest type"}), + error:{badarg,{"pkey.c",_},"Bad digest type"++_}), ?chk_api_name(crypto:verify(foobar, sha, "nothing", <<"nothing">>, <<1:1024>>), - error:{badarg, {"pkey.c",_}, "Bad algorithm"}). + error:{badarg, {"pkey.c",_}, "Bad algorithm"++_}). %%%---------------------------------------------------------------- @@ -4485,7 +4485,7 @@ pbkdf2_hmac(Config) when is_list(Config) -> "A1D425A1225833549ADB841B51C9B317" "6A272BDEBBA1D078478F62B397F33C8D">> = F256(<<"Password">>, <<"NaCl">>, 80000, 64) catch - error:{notsup, _, "Unsupported CRYPTO_PKCS5_PBKDF2_HMAC"} -> + error:{notsup, _, "Unsupported CRYPTO_PKCS5_PBKDF2_HMAC"++_} -> {skip, "No CRYPTO_PKCS5_PBKDF2_HMAC"} end. -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor