Skip to content

Commit 73728d5

Browse files
committed
Make test more robust
This will be needed when we change how many times some functions are callled in ecp.c, making them more susceptible to inlining. Signed-off-by: Manuel Pégourié-Gonnard <[email protected]>
1 parent 7f60c7d commit 73728d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/scripts/components-configuration-crypto.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,8 @@ common_test_psa_crypto_config_accel_ecc_some_curves () {
854854
ALG_SHA3_224 ALG_SHA3_256 ALG_SHA3_384 ALG_SHA3_512"
855855
helper_libtestdriver1_make_drivers "$loc_accel_list" "$loc_extra_list"
856856

857-
helper_libtestdriver1_make_main "$loc_accel_list"
857+
# For grep to work below we need less inlining in ecp.c
858+
ASAN_CFLAGS="$ASAN_CFLAGS -O0" helper_libtestdriver1_make_main "$loc_accel_list"
858859

859860
# We expect ECDH to be re-enabled for the missing curves
860861
grep mbedtls_ecdh_ ${BUILTIN_SRC_PATH}/ecdh.o

0 commit comments

Comments
 (0)