1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-14 20:01:00 +03:00

Update unit tests for change in test suites code generator

Code generator has been modified to generate case statements for dependency checks and expression checks.
This commit updates the unit tests accordingly.
This commit is contained in:
Azim Khan
2017-07-10 11:54:01 +01:00
committed by Mohammad Azim Khan
parent b1c2d0f946
commit d61b837fac
2 changed files with 116 additions and 141 deletions

@ -429,11 +429,11 @@ def gen_dep_check(dep_id, dep):
dep_check = '''
case {id}:
{{
#if {noT}defined({macro})
#if {noT}defined({macro})
ret = DEPENDENCY_SUPPORTED;
#else
#else
ret = DEPENDENCY_NOT_SUPPORTED;
#endif
#endif
}}
break;'''.format(noT=noT, macro=dep, id=dep_id)
return dep_check