Failing TEST_ASSERT now breaks off test

This commit is contained in:
Paul Bakker 2013-08-20 12:41:33 +02:00
parent b34fef2f3c
commit bb20f4b720

View file

@ -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 )
{