Fix generate_test_code.py unit tests

This commit is contained in:
Mohammad Azim Khan 2018-06-26 14:06:52 +01:00
parent 0fa3504a77
commit c3521dfdd6
2 changed files with 1 additions and 3 deletions

View file

@ -147,7 +147,7 @@ void {name}_wrapper( void ** params )
{name}( {args} );
}}
'''.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),
locals=locals)
return wrapper

View file

@ -170,7 +170,6 @@ class GenFunctionWrapper(TestCase):
void test_a_wrapper( void ** params )
{
test_a( a, b, c, d );
}
'''
@ -186,7 +185,6 @@ void test_a_wrapper( void ** params )
expected = '''
void test_a_wrapper( void ** params )
{
int x = 1;
test_a( x, b, c, d );
}