Commit bb20f4b7 authored by Paul Bakker's avatar Paul Bakker
Browse files

Failing TEST_ASSERT now breaks off test

parent b34fef2f
......@@ -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 )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment