mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-06 20:33:02 +00:00
Add explicit checks for non-zero result of platform setup in test suites
This commit is contained in:
@@ -282,7 +282,7 @@ int main(int argc, const char *argv[])
|
||||
!defined(TEST_SUITE_MEMORY_BUFFER_ALLOC)
|
||||
unsigned char alloc_buf[1000000];
|
||||
#endif
|
||||
if( platform_setup() )
|
||||
if( platform_setup() != 0 )
|
||||
{
|
||||
mbedtls_fprintf( stderr, "FATAL: Failed to initialize platform" );
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user