mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-13 17:05:33 +00:00
Adapt generic test suite file to coding standard
This commit is contained in:
parent
910f662cd7
commit
75efa79201
|
@ -396,7 +396,7 @@ int main(int argc, const char *argv[])
|
||||||
break;
|
break;
|
||||||
cnt = parse_arguments( buf, strlen(buf), params );
|
cnt = parse_arguments( buf, strlen(buf), params );
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there are no unmet dependencies execute the test
|
// If there are no unmet dependencies execute the test
|
||||||
if( unmet_dep_count == 0 )
|
if( unmet_dep_count == 0 )
|
||||||
{
|
{
|
||||||
|
@ -462,22 +462,22 @@ int main(int argc, const char *argv[])
|
||||||
else if( ret == DISPATCH_INVALID_TEST_DATA )
|
else if( ret == DISPATCH_INVALID_TEST_DATA )
|
||||||
{
|
{
|
||||||
mbedtls_fprintf( stderr, "FAILED: FATAL PARSE ERROR\n" );
|
mbedtls_fprintf( stderr, "FAILED: FATAL PARSE ERROR\n" );
|
||||||
fclose(file);
|
fclose( file );
|
||||||
mbedtls_exit( 2 );
|
mbedtls_exit( 2 );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
total_errors++;
|
total_errors++;
|
||||||
|
|
||||||
if( ( ret = get_line( file, buf, sizeof(buf) ) ) != 0 )
|
if( ( ret = get_line( file, buf, sizeof( buf ) ) ) != 0 )
|
||||||
break;
|
break;
|
||||||
if( strlen(buf) != 0 )
|
if( strlen( buf ) != 0 )
|
||||||
{
|
{
|
||||||
mbedtls_fprintf( stderr, "Should be empty %d\n",
|
mbedtls_fprintf( stderr, "Should be empty %d\n",
|
||||||
(int) strlen(buf) );
|
(int) strlen( buf ) );
|
||||||
return( 1 );
|
return( 1 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fclose(file);
|
fclose( file );
|
||||||
|
|
||||||
/* In case we encounter early end of file */
|
/* In case we encounter early end of file */
|
||||||
for( i = 0; i < unmet_dep_count; i++ )
|
for( i = 0; i < unmet_dep_count; i++ )
|
||||||
|
@ -508,4 +508,3 @@ int main(int argc, const char *argv[])
|
||||||
|
|
||||||
return( total_errors != 0 );
|
return( total_errors != 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue