commit | 318d0fe844b111c72df9c4660d1f915423310659 | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Thu Jul 10 14:59:25 2014 +0200 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Thu Jul 10 15:27:11 2014 +0200 |
tree | 41408bc393eb28ed993de4c329f7918a29b3adc6 | |
parent | 4d0cfe80eaea7ca4e21de7a584b0004ab489bb1f [diff] [blame] |
Auto add 'exit' label in every test function. Failed assert now goes there
diff --git a/tests/suites/main_test.function b/tests/suites/main_test.function index 95a924f..318ca9a 100644 --- a/tests/suites/main_test.function +++ b/tests/suites/main_test.function
@@ -29,7 +29,7 @@ #define TEST_ASSERT( TEST ) \ do { test_assert( (TEST) ? 1 : 0, #TEST ); \ - if( test_errors) return; \ + if( test_errors) goto exit; \ } while (0) int verify_string( char **str )