commit | bb20f4b720d0b5cb6729038f56321b7117c1a056 | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Tue Aug 20 12:41:33 2013 +0200 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Tue Aug 20 12:41:33 2013 +0200 |
tree | 523616225286038c9d182b8c72842cc6f707ba47 | |
parent | b34fef2f3c03ba858d7e606c8c5b51736359a399 [diff] [blame] |
Failing TEST_ASSERT now breaks off test
diff --git a/tests/suites/main_test.function b/tests/suites/main_test.function index 5eb46bf..4a34319 100644 --- a/tests/suites/main_test.function +++ b/tests/suites/main_test.function
@@ -16,7 +16,10 @@ return( 1 ); } -#define TEST_ASSERT( TEST ) (test_assert((TEST) ? 1 : 0, #TEST)) +#define TEST_ASSERT( TEST ) \ + do { test_assert( (TEST) ? 1 : 0, #TEST ); \ + if( test_errors) return; \ + } while (0) int verify_string( char **str ) {