mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 20:45:37 +01:00
Enhanced test output presentation
This commit is contained in:
parent
dbd443dca6
commit
55a7e908f2
@ -9,8 +9,9 @@ static int test_assert( int correct, char *test )
|
|||||||
return( 0 );
|
return( 0 );
|
||||||
|
|
||||||
test_errors++;
|
test_errors++;
|
||||||
// if( test_errors == 1 )
|
if( test_errors == 1 )
|
||||||
printf( "FAILED\n %s\n\n", test );
|
printf( "FAILED\n" );
|
||||||
|
printf( " %s\n", test );
|
||||||
|
|
||||||
return( 1 );
|
return( 1 );
|
||||||
}
|
}
|
||||||
@ -205,7 +206,7 @@ int main()
|
|||||||
|
|
||||||
if( ( ret = get_line( file, buf, sizeof(buf) ) ) != 0 )
|
if( ( ret = get_line( file, buf, sizeof(buf) ) ) != 0 )
|
||||||
break;
|
break;
|
||||||
fprintf( stdout, "%.66s", buf );
|
fprintf( stdout, "%s%.66s", test_errors ? "\n" : "", buf );
|
||||||
fprintf( stdout, " " );
|
fprintf( stdout, " " );
|
||||||
for( i = strlen( buf ) + 1; i < 67; i++ )
|
for( i = strlen( buf ) + 1; i < 67; i++ )
|
||||||
fprintf( stdout, "." );
|
fprintf( stdout, "." );
|
||||||
@ -259,7 +260,7 @@ int main()
|
|||||||
break;
|
break;
|
||||||
if( strlen(buf) != 0 )
|
if( strlen(buf) != 0 )
|
||||||
{
|
{
|
||||||
fprintf( stderr, "Should be empty %d\n", strlen(buf) );
|
fprintf( stderr, "Should be empty %d\n", (int) strlen(buf) );
|
||||||
return( 1 );
|
return( 1 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user