@@ -212,6 +212,8 @@ def metafunc(self, jspi, *args, **kwargs):
212
212
self .require_jspi ()
213
213
else :
214
214
self .set_setting ('ASYNCIFY' )
215
+ if self .get_setting ('MODULARIZE' ) == 'instance' :
216
+ self .skipTest ('MODULARIZE=instance is not compatible with ASYNCIFY=1' )
215
217
f (self , * args , ** kwargs )
216
218
217
219
parameterize (metafunc , {'' : (False ,),
@@ -231,6 +233,8 @@ def metafunc(self, asyncify, *args, **kwargs):
231
233
self .require_jspi ()
232
234
elif asyncify == 1 :
233
235
self .set_setting ('ASYNCIFY' )
236
+ if self .get_setting ('MODULARIZE' ) == 'instance' :
237
+ self .skipTest ('MODULARIZE=instance is not compatible with ASYNCIFY=1' )
234
238
else :
235
239
assert asyncify == 0
236
240
f (self , * args , ** kwargs )
@@ -1881,7 +1885,7 @@ def test_emscripten_get_compiler_setting(self):
1881
1885
self .set_setting ('RETAIN_COMPILER_SETTINGS' )
1882
1886
self .do_runf (src , read_file (output ).replace ('waka' , utils .EMSCRIPTEN_VERSION ))
1883
1887
1884
- @no_esm_integration ( 'WASM_ESM_INTEGRATION is not compatible with ASYNCIFY=1' )
1888
+ @no_modularize_instance ( 'MODULARIZE=instance is not compatible with ASYNCIFY=1' )
1885
1889
def test_emscripten_has_asyncify (self ):
1886
1890
src = r'''
1887
1891
#include <stdio.h>
@@ -7020,7 +7024,7 @@ def test_EXPORTED_RUNTIME_METHODS(self):
7020
7024
self .do_core_test ('EXPORTED_RUNTIME_METHODS.c' )
7021
7025
7022
7026
@also_with_minimal_runtime
7023
- @no_esm_integration ( 'WASM_ESM_INTEGRATION is not compatible with DYNCALLS ' )
7027
+ @no_modularize_instance ( 'uses dynCallLegacy ' )
7024
7028
def test_dyncall_specific (self ):
7025
7029
if self .get_setting ('WASM_BIGINT' ) != 0 and not self .is_wasm2js ():
7026
7030
# define DYNCALLS because this test does test calling them directly, and
@@ -7047,8 +7051,8 @@ def test_dyncall_specific(self):
7047
7051
'legacy' : (['-sDYNCALLS' ],),
7048
7052
})
7049
7053
def test_dyncall_pointers (self , args ):
7050
- if args and self . get_setting ( 'WASM_ESM_INTEGRATION' ) :
7051
- self .skipTest ('WASM_ESM_INTEGRATION is not compatible with DYNCALLS ' )
7054
+ if args :
7055
+ self .skipTest ('dynCallLegacy is not yet compatible with WASM_ESM_INTEGRATION ' )
7052
7056
self .do_core_test ('test_dyncall_pointers.c' , emcc_args = args )
7053
7057
7054
7058
@also_with_wasm_bigint
@@ -8064,7 +8068,7 @@ def test_vswprintf_utf8(self):
8064
8068
8065
8069
# Test async sleeps in the presence of invoke_* calls, which can happen with
8066
8070
# longjmp or exceptions.
8067
- @no_esm_integration ( 'WASM_ESM_INTEGRATION is not compatible with ASYNCIFY=1' )
8071
+ @no_modularize_instance ( 'MODULARIZE=instance is not compatible with ASYNCIFY=1' )
8068
8072
def test_asyncify_longjmp (self ):
8069
8073
self .set_setting ('ASYNCIFY' )
8070
8074
self .set_setting ('STRICT' )
@@ -8124,7 +8128,7 @@ def test_async_loop(self):
8124
8128
self .do_runf ('main.c' , 'hello 0\n hello 1\n hello 2\n hello 3\n hello 4\n ' )
8125
8129
8126
8130
@requires_v8
8127
- @no_esm_integration ( 'WASM_ESM_INTEGRATION is not compatible with ASYNCIFY=1' )
8131
+ @no_modularize_instance ( 'MODULARIZE=instance is not compatible with ASYNCIFY=1' )
8128
8132
def test_async_hello_v8 (self ):
8129
8133
self .test_async_hello ()
8130
8134
@@ -8229,7 +8233,7 @@ def test_async_ccall_promise(self, exit_runtime):
8229
8233
self .emcc_args += ['--pre-js' , 'pre.js' ]
8230
8234
self .do_runf ('main.c' , 'stringf: first\n second\n 6.4' )
8231
8235
8232
- @no_esm_integration ( 'WASM_ESM_INTEGRATION is not compatible with ASYNCIFY=1' )
8236
+ @no_modularize_instance ( 'MODULARIZE=instance is not compatible with ASYNCIFY=1' )
8233
8237
def test_fibers_asyncify (self ):
8234
8238
self .set_setting ('ASYNCIFY' )
8235
8239
self .maybe_closure ()
@@ -8240,7 +8244,7 @@ def test_asyncify_unused(self):
8240
8244
# test a program not using asyncify, but the pref is set
8241
8245
self .do_core_test ('test_hello_world.c' )
8242
8246
8243
- @no_esm_integration ( 'WASM_ESM_INTEGRATION is not compatible with ASYNCIFY=1' )
8247
+ @no_modularize_instance ( 'MODULARIZE=instance is not compatible with ASYNCIFY=1' )
8244
8248
@parameterized ({
8245
8249
'normal' : ([], True ),
8246
8250
'removelist_a' : (['-sASYNCIFY_REMOVE=["foo(int, double)"]' ], False ),
@@ -8288,7 +8292,7 @@ def test_asyncify_lists(self, args, should_pass, response=None):
8288
8292
# virt() manually, rather than have them inferred automatically.
8289
8293
'add_no_prop' : (['-sASYNCIFY_IGNORE_INDIRECT' , '-sASYNCIFY_ADD=["__original_main","main","virt()"]' , '-sASYNCIFY_PROPAGATE_ADD=0' ], True ),
8290
8294
})
8291
- @no_esm_integration ( 'WASM_ESM_INTEGRATION is not compatible with ASYNCIFY=1' )
8295
+ @no_modularize_instance ( 'MODULARIZE=instance is not compatible with ASYNCIFY=1' )
8292
8296
def test_asyncify_indirect_lists (self , args , should_pass ):
8293
8297
self .set_setting ('ASYNCIFY' )
8294
8298
self .emcc_args += args
@@ -8306,7 +8310,7 @@ def test_asyncify_indirect_lists(self, args, should_pass):
8306
8310
raise
8307
8311
8308
8312
@with_dylink_reversed
8309
- @no_esm_integration ( 'WASM_ESM_INTEGRATION is not compatible with ASYNCIFY=1' )
8313
+ @no_modularize_instance ( 'MODULARIZE=instance is not compatible with ASYNCIFY=1' )
8310
8314
def test_asyncify_side_module (self ):
8311
8315
self .set_setting ('ASYNCIFY' )
8312
8316
self .set_setting ('ASYNCIFY_IMPORTS' , ['my_sleep' ])
@@ -8336,12 +8340,12 @@ def test_asyncify_side_module(self):
8336
8340
''' , 'before sleep\n 42\n 42\n after sleep\n ' , header = 'void my_sleep(int);' , force_c = True )
8337
8341
8338
8342
@no_asan ('asyncify stack operations confuse asan' )
8339
- @no_esm_integration ( 'WASM_ESM_INTEGRATION is not compatible with ASYNCIFY=1' )
8343
+ @no_modularize_instance ( 'MODULARIZE=instance is not compatible with ASYNCIFY=1' )
8340
8344
def test_emscripten_scan_registers (self ):
8341
8345
self .set_setting ('ASYNCIFY' )
8342
8346
self .do_core_test ('test_emscripten_scan_registers.cpp' )
8343
8347
8344
- @no_esm_integration ( 'WASM_ESM_INTEGRATION is not compatible with ASYNCIFY=1' )
8348
+ @no_modularize_instance ( 'MODULARIZE=instance is not compatible with ASYNCIFY=1' )
8345
8349
def test_asyncify_assertions (self ):
8346
8350
self .set_setting ('ASYNCIFY' )
8347
8351
self .set_setting ('ASYNCIFY_IMPORTS' , ['suspend' ])
@@ -8350,7 +8354,7 @@ def test_asyncify_assertions(self):
8350
8354
8351
8355
@no_lsan ('leaks asyncify stack during exit' )
8352
8356
@no_asan ('leaks asyncify stack during exit' )
8353
- @no_esm_integration ( 'WASM_ESM_INTEGRATION is not compatible with ASYNCIFY=1' )
8357
+ @no_modularize_instance ( 'MODULARIZE=instance is not compatible with ASYNCIFY=1' )
8354
8358
def test_asyncify_during_exit (self ):
8355
8359
self .set_setting ('ASYNCIFY' )
8356
8360
self .set_setting ('ASSERTIONS' )
0 commit comments