1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Fix PSA tests

The test framework has changed, but it did not cause any merge
conflicts. Still it affected new code in the tests.
This commit is contained in:
Janos Follath
2019-08-09 10:22:32 +01:00
parent 8aa7e9bc56
commit 849b05afb8
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ static int test_helper_is_psa_pristine( int line, const char *file )
/* 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.failed == 0 )
if( msg != NULL && test_info.result == TEST_RESULT_SUCCESS )
test_fail( msg, line, file );
return( msg == NULL );