1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

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