mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 17:05:42 +01:00
The suite specific header should only be used when the suite is active
This commit is contained in:
parent
4606c7317b
commit
de56ca1097
@ -61,7 +61,9 @@ open(TEST_FILE, ">$test_file") or die "Opening destination file '$test_file': $!
|
||||
print TEST_FILE << "END";
|
||||
#include <polarssl/config.h>
|
||||
|
||||
$suite_pre_code
|
||||
$suite_header
|
||||
$suite_post_code
|
||||
|
||||
$test_helpers
|
||||
|
||||
|
@ -3,6 +3,9 @@
|
||||
|
||||
static int test_errors = 0;
|
||||
|
||||
SUITE_PRE_DEP
|
||||
#define TEST_SUITE_ACTIVE
|
||||
|
||||
static int test_assert( int correct, char *test )
|
||||
{
|
||||
if( correct )
|
||||
@ -81,6 +84,9 @@ MAPPING_CODE
|
||||
return( -1 );
|
||||
}
|
||||
|
||||
FUNCTION_CODE
|
||||
SUITE_POST_DEP
|
||||
|
||||
int dep_check( char *str )
|
||||
{
|
||||
if( str == NULL )
|
||||
@ -91,11 +97,6 @@ DEP_CHECK_CODE
|
||||
return( 1 );
|
||||
}
|
||||
|
||||
SUITE_PRE_DEP
|
||||
#define TEST_SUITE_ACTIVE
|
||||
FUNCTION_CODE
|
||||
SUITE_POST_DEP
|
||||
|
||||
int dispatch_test(int cnt, char *params[50])
|
||||
{
|
||||
int ret;
|
||||
|
Loading…
Reference in New Issue
Block a user