commit | a282270a10b42fb0d4d109c3e96ccc745f2095cf | [log] [tgz] |
---|---|---|
author | Andrzej Kurek <andrzej.kurek@arm.com> | Mon Apr 16 06:33:28 2018 -0400 |
committer | Andrzej Kurek <andrzej.kurek@arm.com> | Mon Apr 16 06:33:28 2018 -0400 |
tree | c2cccb9be70641908fbfeedf680a3e38f8a7a01f | |
parent | 32a675f032fdc9ef14cb8c171fb187d42b51c998 [diff] [blame] |
Add explicit checks for non-zero result of platform setup in test suites
diff --git a/tests/suites/main_test.function b/tests/suites/main_test.function index e5b4043..8d7e477 100644 --- a/tests/suites/main_test.function +++ b/tests/suites/main_test.function
@@ -282,7 +282,7 @@ !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;