Failing TEST_ASSERT now breaks off test
This commit is contained in:
parent
b34fef2f3c
commit
bb20f4b720
1 changed files with 4 additions and 1 deletions
|
@ -16,7 +16,10 @@ static int test_assert( int correct, char *test )
|
|||
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 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue