1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Add explicit checks for non-zero result of platform setup in test suites

This commit is contained in:
Andrzej Kurek
2018-04-16 06:33:28 -04:00
parent 32a675f032
commit a282270a10
2 changed files with 2 additions and 2 deletions

View File

@ -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;