mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-07 04:36:41 +00:00
Gaurd test suite headers with suite dependency
Test suite header code was not gaurded with test suite dependency. But some test suites have additional code in the headers section. Variables in that section become unused if suite functions are gaurded. Hence gaurded the headers section. But this changed cuased missing types in get_expression() function that was originally accessing types defined through suite headers. Hence had to gaurd expressions code as well. Gaurding expressions does not allow parsing the parameters when some types or hash defs are gaurded. Hence added function check_test() to check if test is allowed or not before parsing the parameters.
This commit is contained in:
committed by
Mohammad Azim Khan
parent
8c4d5ba763
commit
13c6bfbc2a
@@ -371,6 +371,8 @@ int execute_tests( int args, const char ** argv )
|
||||
/* Read function id */
|
||||
function_id = *p;
|
||||
INCR_ASSERT( p, data, data_len, sizeof( uint8_t ) );
|
||||
if ( ( ret = check_test( function_id ) ) != DISPATCH_TEST_SUCCESS )
|
||||
break;
|
||||
|
||||
/* Read number of parameters */
|
||||
count = *p;
|
||||
|
||||
Reference in New Issue
Block a user