mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-24 16:02:58 +00:00
Test suites: print error on failed platform_setup
Return encountered errors instead of covering them Fix return value on the broken snprintf implementation
This commit is contained in:
@@ -132,13 +132,11 @@ mbedtls_platform_context platform_ctx;
|
||||
/* Helper Functions */
|
||||
static int platform_setup()
|
||||
{
|
||||
int ret = 0;
|
||||
#if defined(MBEDTLS_PLATFORM_C)
|
||||
if( mbedtls_platform_setup( &platform_ctx ) != 0 )
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
ret = mbedtls_platform_setup( &platform_ctx );
|
||||
#endif /* MBEDTLS_PLATFORM_C */
|
||||
return 0;
|
||||
return( ret );
|
||||
}
|
||||
|
||||
static void platform_teardown()
|
||||
|
||||
Reference in New Issue
Block a user