mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-08 10:09:54 +00:00
Failing TEST_ASSERT now breaks off test
This commit is contained in:
parent
b34fef2f3c
commit
bb20f4b720
|
@ -16,7 +16,10 @@ static int test_assert( int correct, char *test )
|
||||||
return( 1 );
|
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 )
|
int verify_string( char **str )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue