Skip to content

Commit 849b05a

Browse files
committed
Fix PSA tests
The test framework has changed, but it did not cause any merge conflicts. Still it affected new code in the tests.
1 parent 8aa7e9b commit 849b05a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/psa_crypto_helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static int test_helper_is_psa_pristine( int line, const char *file )
4545
/* If the test has already failed, don't overwrite the failure
4646
* information. Do keep the stats lookup above, because it can be
4747
* convenient to break on it when debugging a failure. */
48-
if( msg != NULL && test_info.failed == 0 )
48+
if( msg != NULL && test_info.result == TEST_RESULT_SUCCESS )
4949
test_fail( msg, line, file );
5050

5151
return( msg == NULL );

tests/suites/target_test.function

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ int execute_tests( int args, const char ** argv )
374374
while ( 1 )
375375
{
376376
ret = 0;
377-
test_info.failed = 0;
377+
test_info.result = TEST_RESULT_SUCCESS;
378378
data_len = 0;
379379

380380
data = receive_data( &data_len );
@@ -432,7 +432,7 @@ int execute_tests( int args, const char ** argv )
432432
if ( ret )
433433
send_failure( ret );
434434
else
435-
send_status( test_info.failed );
435+
send_status( test_info.result );
436436
}
437437
return( 0 );
438438
}

0 commit comments

Comments
 (0)