@@ -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>
@@ -6950,7 +6954,7 @@ def test_autodebug_wasm(self):
6950
6954
### Integration tests
6951
6955
6952
6956
@crossplatform
6953
- @no_modularize_instance ('ccall is not compatible with WASM_ESM_INTEGRATION ' )
6957
+ @no_modularize_instance ('ccall is not compatible with MODULARIZE=instance ' )
6954
6958
def test_ccall (self ):
6955
6959
self .emcc_args .append ('-Wno-return-stack-address' )
6956
6960
self .set_setting ('EXPORTED_RUNTIME_METHODS' , ['ccall' , 'cwrap' , 'STACK_SIZE' ])
@@ -6995,7 +6999,7 @@ def test_ccall(self):
6995
6999
if self .maybe_closure ():
6996
7000
self .do_core_test ('test_ccall.cpp' )
6997
7001
6998
- @no_modularize_instance ('ccall is not compatible with WASM_ESM_INTEGRATION ' )
7002
+ @no_modularize_instance ('ccall is not compatible with MODULARIZE=instance ' )
6999
7003
def test_ccall_cwrap_fast_path (self ):
7000
7004
self .emcc_args .append ('-Wno-return-stack-address' )
7001
7005
self .set_setting ('EXPORTED_RUNTIME_METHODS' , ['ccall' , 'cwrap' ])
@@ -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 and self .get_setting ('MODULARIZE' ) == 'instance' or self . get_setting ( ' WASM_ESM_INTEGRATION' ):
7055
+ self .skipTest ('dynCallLegacy is not yet compatible with MODULARIZE=instance ' )
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,11 +8128,11 @@ 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
8131
- @no_modularize_instance ('ccall is not compatible with WASM_ESM_INTEGRATION ' )
8135
+ @no_modularize_instance ('ccall is not compatible with MODULARIZE=instance ' )
8132
8136
def test_async_ccall_bad (self ):
8133
8137
# check bad ccall use
8134
8138
# needs to flush stdio streams
@@ -8160,7 +8164,7 @@ def test_async_ccall_bad(self):
8160
8164
self .do_runf ('main.c' , 'The call to main is running asynchronously.' )
8161
8165
8162
8166
@with_asyncify_and_jspi
8163
- @no_modularize_instance ('ccall is not compatible with WASM_ESM_INTEGRATION ' )
8167
+ @no_modularize_instance ('ccall is not compatible with MODULARIZE=instance ' )
8164
8168
def test_async_ccall_good (self ):
8165
8169
# check reasonable ccall use
8166
8170
self .set_setting ('ASYNCIFY' )
@@ -8189,7 +8193,7 @@ def test_async_ccall_good(self):
8189
8193
'exit_runtime' : (True ,),
8190
8194
})
8191
8195
@with_asyncify_and_jspi
8192
- @no_modularize_instance ('ccall is not compatible with WASM_ESM_INTEGRATION ' )
8196
+ @no_modularize_instance ('ccall is not compatible with MODULARIZE=instance ' )
8193
8197
def test_async_ccall_promise (self , exit_runtime ):
8194
8198
if self .get_setting ('ASYNCIFY' ) == 2 :
8195
8199
self .set_setting ('JSPI_EXPORTS' , ['stringf' , 'floatf' ])
@@ -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' )
@@ -9540,7 +9544,7 @@ def test_emscripten_stack(self):
9540
9544
self .do_core_test ('test_stack_get_free.c' )
9541
9545
9542
9546
# Tests settings.ABORT_ON_WASM_EXCEPTIONS
9543
- @no_modularize_instance ('ABORT_ON_WASM_EXCEPTIONS ' )
9547
+ @no_modularize_instance ('ccall is not compatible with MODULARIZE=instance ' )
9544
9548
def test_abort_on_exceptions (self ):
9545
9549
self .set_setting ('ABORT_ON_WASM_EXCEPTIONS' )
9546
9550
self .set_setting ('ALLOW_TABLE_GROWTH' )
@@ -9549,7 +9553,7 @@ def test_abort_on_exceptions(self):
9549
9553
self .emcc_args += ['-lembind' , '--post-js' , test_file ('core/test_abort_on_exceptions_post.js' )]
9550
9554
self .do_core_test ('test_abort_on_exceptions.cpp' , interleaved_output = False )
9551
9555
9552
- @no_modularize_instance ('ABORT_ON_WASM_EXCEPTIONS' )
9556
+ @no_esm_integration ('ABORT_ON_WASM_EXCEPTIONS is not compatible with WASM_ESM_INTEGRATION ' )
9553
9557
def test_abort_on_exceptions_main (self ):
9554
9558
# The unhandled exception wrappers should not kick in for exceptions thrown during main
9555
9559
self .set_setting ('ABORT_ON_WASM_EXCEPTIONS' )
@@ -9563,7 +9567,7 @@ def test_abort_on_exceptions_main(self):
9563
9567
9564
9568
@node_pthreads
9565
9569
@flaky ('https://github.com/emscripten-core/emscripten/issues/20067' )
9566
- @no_modularize_instance ('ABORT_ON_WASM_EXCEPTIONS' )
9570
+ @no_esm_integration ('ABORT_ON_WASM_EXCEPTIONS is not compatible with WASM_ESM_INTEGRATION ' )
9567
9571
def test_abort_on_exceptions_pthreads (self ):
9568
9572
self .set_setting ('ABORT_ON_WASM_EXCEPTIONS' )
9569
9573
self .set_setting ('PROXY_TO_PTHREAD' )
0 commit comments