@@ -7155,7 +7155,7 @@ def test_exported_response(self):
7155
7155
return 0;
7156
7156
}
7157
7157
'''
7158
- create_file ('exps' , '[" _main","_other_function"] ' )
7158
+ create_file ('exps' , '_main\n _other_function \n ' )
7159
7159
7160
7160
self .set_setting ('EXPORTED_FUNCTIONS' , '@exps' )
7161
7161
self .do_run (src , '''waka 5!''' )
@@ -7170,12 +7170,12 @@ def test_large_exported_response(self):
7170
7170
extern "C" {
7171
7171
'''
7172
7172
7173
- js_funcs = []
7173
+ rsp_file_lines = []
7174
7174
num_exports = 5000
7175
7175
count = 0
7176
7176
while count < num_exports :
7177
7177
src += 'int exported_func_from_response_file_%d () { return %d;}\n ' % (count , count )
7178
- js_funcs .append ('_exported_func_from_response_file_%d' % count )
7178
+ rsp_file_lines .append ('_exported_func_from_response_file_%d' % count )
7179
7179
count += 1
7180
7180
7181
7181
src += r'''
@@ -7191,8 +7191,8 @@ def test_large_exported_response(self):
7191
7191
}
7192
7192
'''
7193
7193
7194
- js_funcs .append ('_main' )
7195
- create_file ('large_exported_response.json' , json . dumps ( js_funcs ) )
7194
+ rsp_file_lines .append ('_main' )
7195
+ create_file ('large_exported_response.json' , ' \n ' . join ( rsp_file_lines ) + ' \n ' )
7196
7196
7197
7197
self .set_setting ('EXPORTED_FUNCTIONS' , '@large_exported_response.json' )
7198
7198
self .do_run (src , 'waka 4999!' )
@@ -8193,8 +8193,8 @@ def test_asyncify_unused(self):
8193
8193
'onlylist_b' : (['-sASYNCIFY_ONLY=["main","__original_main","foo(int, double)","baz()","c_baz","Structy::funcy()"]' ], True ),
8194
8194
'onlylist_c' : (['-sASYNCIFY_ONLY=["main","__original_main","foo(int, double)","baz()","c_baz"]' ], False ),
8195
8195
'onlylist_d' : (['-sASYNCIFY_ONLY=["foo(int, double)","baz()","c_baz","Structy::funcy()"]' ], False ),
8196
- 'onlylist_b_response' : ([], True , '[" main","__original_main","foo (int, double)","baz()","c_baz","Structy ::funcy()"] ' ),
8197
- 'onlylist_c_response' : ([], False , '[" main","__original_main","foo (int, double)","baz()","c_baz"] ' ),
8196
+ 'onlylist_b_response' : ([], True , 'main\n __original_main \n foo (int, double)\n baz() \n c_baz \n Structy ::funcy()\n ' ),
8197
+ 'onlylist_c_response' : ([], False , 'main\n __original_main \n foo (int, double)\n baz() \n c_baz \n ' ),
8198
8198
})
8199
8199
def test_asyncify_lists (self , args , should_pass , response = None ):
8200
8200
if response is not None :
0 commit comments