diff --git a/tests/include/test/psa_crypto_helpers.h b/tests/include/test/psa_crypto_helpers.h index 9263a932c..e62bc0401 100644 --- a/tests/include/test/psa_crypto_helpers.h +++ b/tests/include/test/psa_crypto_helpers.h @@ -46,10 +46,7 @@ static int mbedtls_test_helper_is_psa_pristine( int line, const char *file ) msg = "Some slots are still marked as locked."; } - /* If the test has already failed, don't overwrite the failure - * information. Do keep the stats lookup above, because it can be - * convenient to break on it when debugging a failure. */ - if( msg != NULL && test_info.result == TEST_RESULT_SUCCESS ) + if( msg != NULL ) test_fail( msg, line, file ); return( msg == NULL );