aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-10-22 10:50:00 +0200
committerHans Nilsson <[email protected]>2018-10-24 10:15:43 +0200
commit93550a678b6459b6490b1a2341207021bd4e6cb2 (patch)
tree811ad0020948074852455077374694a2cf425bf5 /lib/crypto
parentd53cb8e4f366669714c8c68a0fb481e8eaf849c9 (diff)
downloadotp-93550a678b6459b6490b1a2341207021bd4e6cb2.tar.gz
otp-93550a678b6459b6490b1a2341207021bd4e6cb2.tar.bz2
otp-93550a678b6459b6490b1a2341207021bd4e6cb2.zip
crypto: Fix tests failing if more than one test engine available
This could happen in an Valgrind run: === Reason: no case clause matching ["otp_test_engine.so", "otp_test_engine.valgrind.so"] in function crypto:check_otp_test_engine/1 (crypto.erl, line 2026) in call from engine_SUITE:engine_load_all_methods/1 (engine_SUITE.erl, line 154)
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/src/crypto.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl
index 2db73c4af0..c2ab88417e 100644
--- a/lib/crypto/src/crypto.erl
+++ b/lib/crypto/src/crypto.erl
@@ -2026,7 +2026,7 @@ check_otp_test_engine(LibDir) ->
case filelib:wildcard("otp_test_engine*", LibDir) of
[] ->
{error, notexist};
- [LibName] ->
+ [LibName|_] -> % In case of Valgrind there could be more than one
LibPath = filename:join(LibDir,LibName),
case filelib:is_file(LibPath) of
true ->