mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 06:15:44 +01: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:
parent
8aa7e9bc56
commit
849b05afb8
@ -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
|
/* If the test has already failed, don't overwrite the failure
|
||||||
* information. Do keep the stats lookup above, because it can be
|
* information. Do keep the stats lookup above, because it can be
|
||||||
* convenient to break on it when debugging a failure. */
|
* 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 );
|
test_fail( msg, line, file );
|
||||||
|
|
||||||
return( msg == NULL );
|
return( msg == NULL );
|
||||||
|
@ -374,7 +374,7 @@ int execute_tests( int args, const char ** argv )
|
|||||||
while ( 1 )
|
while ( 1 )
|
||||||
{
|
{
|
||||||
ret = 0;
|
ret = 0;
|
||||||
test_info.failed = 0;
|
test_info.result = TEST_RESULT_SUCCESS;
|
||||||
data_len = 0;
|
data_len = 0;
|
||||||
|
|
||||||
data = receive_data( &data_len );
|
data = receive_data( &data_len );
|
||||||
@ -432,7 +432,7 @@ int execute_tests( int args, const char ** argv )
|
|||||||
if ( ret )
|
if ( ret )
|
||||||
send_failure( ret );
|
send_failure( ret );
|
||||||
else
|
else
|
||||||
send_status( test_info.failed );
|
send_status( test_info.result );
|
||||||
}
|
}
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user