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} );
|
||||
}}
|
||||
'''.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
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue