mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 19:58:22 +00:00
Fix generate_test_code.py unit tests
This commit is contained in:
parent
0fa3504a77
commit
c3521dfdd6
2 changed files with 1 additions and 3 deletions
|
@ -147,7 +147,7 @@ void {name}_wrapper( void ** params )
|
||||||
{name}( {args} );
|
{name}( {args} );
|
||||||
}}
|
}}
|
||||||
'''.format(name=name,
|
'''.format(name=name,
|
||||||
unused_params='' if args_dispatch else ' (void) params;\n',
|
unused_params='' if args_dispatch else ' (void)params;\n',
|
||||||
args=', '.join(args_dispatch),
|
args=', '.join(args_dispatch),
|
||||||
locals=locals)
|
locals=locals)
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
|
@ -170,7 +170,6 @@ class GenFunctionWrapper(TestCase):
|
||||||
void test_a_wrapper( void ** params )
|
void test_a_wrapper( void ** params )
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
test_a( a, b, c, d );
|
test_a( a, b, c, d );
|
||||||
}
|
}
|
||||||
'''
|
'''
|
||||||
|
@ -186,7 +185,6 @@ void test_a_wrapper( void ** params )
|
||||||
expected = '''
|
expected = '''
|
||||||
void test_a_wrapper( void ** params )
|
void test_a_wrapper( void ** params )
|
||||||
{
|
{
|
||||||
|
|
||||||
int x = 1;
|
int x = 1;
|
||||||
test_a( x, b, c, d );
|
test_a( x, b, c, d );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue