@@ -340,21 +340,6 @@ def decorated(self, *args, **kwargs):
340
340
return decorator
341
341
342
342
343
- def no_memory64 (note ):
344
- assert not callable (note )
345
-
346
- def decorator (f ):
347
- assert callable (f )
348
-
349
- @wraps (f )
350
- def decorated (self , * args , ** kwargs ):
351
- if self .get_setting ('MEMORY64' ):
352
- self .skipTest (note )
353
- f (self , * args , ** kwargs )
354
- return decorated
355
- return decorator
356
-
357
-
358
343
def no_wasmfs (note ):
359
344
assert not callable (note )
360
345
@@ -617,7 +602,7 @@ def test_bswap64(self):
617
602
def test_sha1 (self ):
618
603
self .do_runf (test_file ('sha1.c' ), 'SHA1=15dd99a1991e0b3826fede3deffc1feba42278e6' )
619
604
620
- @no_memory64 ('tests 32-bit specific sizes' )
605
+ @no_wasm64 ('tests 32-bit specific sizes' )
621
606
def test_wasm32_unknown_emscripten (self ):
622
607
# No other configuration is supported, so always run this.
623
608
self .do_runf (test_file ('wasm32-unknown-emscripten.c' ), '' )
@@ -1025,7 +1010,7 @@ def test_mallocstruct(self):
1025
1010
1026
1011
@no_asan ('ASan does not support custom memory allocators' )
1027
1012
@no_lsan ('LSan does not support custom memory allocators' )
1028
- @no_memory64 ('emmalloc does not yet support MEMORY64' )
1013
+ @no_wasm64 ('emmalloc does not yet support MEMORY64' )
1029
1014
@parameterized ({
1030
1015
'normal' : [],
1031
1016
'memvalidate' : ['-DEMMALLOC_MEMVALIDATE' ],
@@ -1045,7 +1030,7 @@ def test_emmalloc(self, *args):
1045
1030
1046
1031
@no_asan ('ASan does not support custom memory allocators' )
1047
1032
@no_lsan ('LSan does not support custom memory allocators' )
1048
- @no_memory64 ('emmalloc does not yet support MEMORY64' )
1033
+ @no_wasm64 ('emmalloc does not yet support MEMORY64' )
1049
1034
def test_emmalloc_usable_size (self , * args ):
1050
1035
self .set_setting ('MALLOC' , 'emmalloc' )
1051
1036
self .emcc_args += list (args )
@@ -1056,7 +1041,7 @@ def test_emmalloc_usable_size(self, *args):
1056
1041
@no_asan ('ASan does not support custom memory allocators' )
1057
1042
@no_lsan ('LSan does not support custom memory allocators' )
1058
1043
@no_ubsan ('UBSan changes memory consumption' )
1059
- @no_memory64 ('emmalloc does not yet support MEMORY64' )
1044
+ @no_wasm64 ('emmalloc does not yet support MEMORY64' )
1060
1045
def test_emmalloc_memory_statistics (self , * args ):
1061
1046
1062
1047
self .set_setting ('MALLOC' , 'emmalloc' )
@@ -1067,15 +1052,15 @@ def test_emmalloc_memory_statistics(self, *args):
1067
1052
@no_optimize ('output is sensitive to optimization flags, so only test unoptimized builds' )
1068
1053
@no_asan ('ASan does not support custom memory allocators' )
1069
1054
@no_lsan ('LSan does not support custom memory allocators' )
1070
- @no_memory64 ('emmalloc does not yet support MEMORY64' )
1055
+ @no_wasm64 ('emmalloc does not yet support MEMORY64' )
1071
1056
def test_emmalloc_trim (self , * args ):
1072
1057
self .set_setting ('MALLOC' , 'emmalloc' )
1073
1058
self .emcc_args += ['-sINITIAL_MEMORY=128MB' , '-sALLOW_MEMORY_GROWTH' , '-sMAXIMUM_MEMORY=2147418112' ] + list (args )
1074
1059
1075
1060
self .do_core_test ('test_emmalloc_trim.cpp' )
1076
1061
1077
1062
# Test case against https://github.com/emscripten-core/emscripten/issues/10363
1078
- @no_memory64 ('emmalloc does not yet support MEMORY64' )
1063
+ @no_wasm64 ('emmalloc does not yet support MEMORY64' )
1079
1064
def test_emmalloc_memalign_corruption (self , * args ):
1080
1065
self .set_setting ('MALLOC' , 'emmalloc' )
1081
1066
self .do_core_test ('emmalloc_memalign_corruption.cpp' )
@@ -2399,7 +2384,7 @@ def test_memorygrowth_3_force_fail_reallocBuffer(self):
2399
2384
})
2400
2385
@no_asan ('requires more memory when growing' )
2401
2386
@no_lsan ('requires more memory when growing' )
2402
- @no_memory64 ('does not fail under wasm64' )
2387
+ @no_wasm64 ('does not fail under wasm64' )
2403
2388
def test_aborting_new (self , args ):
2404
2389
# test that C++ new properly errors if we fail to malloc when growth is
2405
2390
# enabled, with or without growth
@@ -2830,7 +2815,7 @@ def test_pthread_abort_interrupt(self):
2830
2815
2831
2816
@no_asan ('ASan does not support custom memory allocators' )
2832
2817
@no_lsan ('LSan does not support custom memory allocators' )
2833
- @no_memory64 ('emmalloc does not yet support MEMORY64' )
2818
+ @no_wasm64 ('emmalloc does not yet support MEMORY64' )
2834
2819
@node_pthreads
2835
2820
def test_pthread_emmalloc (self ):
2836
2821
self .emcc_args += ['-fno-builtin' ]
@@ -7164,7 +7149,7 @@ def test_large_exported_response(self):
7164
7149
self .do_run (src , 'waka 4999!' )
7165
7150
self .assertContained ('_exported_func_from_response_file_1' , read_file ('src.js' ))
7166
7151
7167
- @no_memory64 ('gives: TypeError: WebAssembly.Table.set(): Argument 1 must be null or a WebAssembly function' )
7152
+ @no_wasm64 ('gives: TypeError: WebAssembly.Table.set(): Argument 1 must be null or a WebAssembly function' )
7168
7153
def test_add_function (self ):
7169
7154
self .set_setting ('INVOKE_RUN' , 0 )
7170
7155
self .set_setting ('WASM_ASYNC_COMPILATION' , 0 )
@@ -7946,7 +7931,7 @@ def test_setlocale(self):
7946
7931
def test_vswprintf_utf8 (self ):
7947
7932
self .do_run_in_out_file_test ('vswprintf_utf8.c' )
7948
7933
7949
- @no_memory64 ('TODO: asyncify for wasm64' )
7934
+ @no_wasm64 ('TODO: asyncify for wasm64' )
7950
7935
@with_asyncify_and_stack_switching
7951
7936
def test_async_hello (self ):
7952
7937
# needs to flush stdio streams
@@ -7972,11 +7957,11 @@ def test_async_hello(self):
7972
7957
self .do_runf ('main.c' , 'HelloWorld!99' )
7973
7958
7974
7959
@requires_v8
7975
- @no_memory64 ('TODO: asyncify for wasm64' )
7960
+ @no_wasm64 ('TODO: asyncify for wasm64' )
7976
7961
def test_async_hello_v8 (self ):
7977
7962
self .test_async_hello ()
7978
7963
7979
- @no_memory64 ('TODO: asyncify for wasm64' )
7964
+ @no_wasm64 ('TODO: asyncify for wasm64' )
7980
7965
def test_async_ccall_bad (self ):
7981
7966
# check bad ccall use
7982
7967
# needs to flush stdio streams
@@ -8007,7 +7992,7 @@ def test_async_ccall_bad(self):
8007
7992
self .emcc_args += ['--pre-js' , 'pre.js' ]
8008
7993
self .do_runf ('main.c' , 'The call to main is running asynchronously.' )
8009
7994
8010
- @no_memory64 ('TODO: asyncify for wasm64' )
7995
+ @no_wasm64 ('TODO: asyncify for wasm64' )
8011
7996
@with_asyncify_and_stack_switching
8012
7997
def test_async_ccall_good (self ):
8013
7998
# check reasonable ccall use
@@ -8037,7 +8022,7 @@ def test_async_ccall_good(self):
8037
8022
'' : (False ,),
8038
8023
'exit_runtime' : (True ,),
8039
8024
})
8040
- @no_memory64 ('TODO: asyncify for wasm64' )
8025
+ @no_wasm64 ('TODO: asyncify for wasm64' )
8041
8026
def test_async_ccall_promise (self , exit_runtime ):
8042
8027
self .set_setting ('ASYNCIFY' )
8043
8028
self .set_setting ('EXIT_RUNTIME' )
@@ -8077,7 +8062,7 @@ def test_async_ccall_promise(self, exit_runtime):
8077
8062
self .emcc_args += ['--pre-js' , 'pre.js' ]
8078
8063
self .do_runf ('main.c' , 'stringf: first\n second\n 6.4' )
8079
8064
8080
- @no_memory64 ('TODO: asyncify for wasm64' )
8065
+ @no_wasm64 ('TODO: asyncify for wasm64' )
8081
8066
def test_fibers_asyncify (self ):
8082
8067
self .set_setting ('ASYNCIFY' )
8083
8068
self .maybe_closure ()
@@ -8100,7 +8085,7 @@ def test_asyncify_unused(self):
8100
8085
'onlylist_b_response' : ([], True , '["main","__original_main","foo(int, double)","baz()","c_baz","Structy::funcy()"]' ),
8101
8086
'onlylist_c_response' : ([], False , '["main","__original_main","foo(int, double)","baz()","c_baz"]' ),
8102
8087
})
8103
- @no_memory64 ('TODO: asyncify for wasm64' )
8088
+ @no_wasm64 ('TODO: asyncify for wasm64' )
8104
8089
def test_asyncify_lists (self , args , should_pass , response = None ):
8105
8090
if response is not None :
8106
8091
create_file ('response.file' , response )
@@ -8131,7 +8116,7 @@ def test_asyncify_lists(self, args, should_pass, response=None):
8131
8116
'ignoreindirect' : (['-sASYNCIFY_IGNORE_INDIRECT' ], False ),
8132
8117
'add' : (['-sASYNCIFY_IGNORE_INDIRECT' , '-sASYNCIFY_ADD=["__original_main","main","virt()"]' ], True ),
8133
8118
})
8134
- @no_memory64 ('TODO: asyncify for wasm64' )
8119
+ @no_wasm64 ('TODO: asyncify for wasm64' )
8135
8120
def test_asyncify_indirect_lists (self , args , should_pass ):
8136
8121
self .set_setting ('ASYNCIFY' )
8137
8122
self .emcc_args += args
@@ -8145,12 +8130,12 @@ def test_asyncify_indirect_lists(self, args, should_pass):
8145
8130
raise
8146
8131
8147
8132
@no_asan ('asyncify stack operations confuse asan' )
8148
- @no_memory64 ('TODO: asyncify for wasm64' )
8133
+ @no_wasm64 ('TODO: asyncify for wasm64' )
8149
8134
def test_emscripten_scan_registers (self ):
8150
8135
self .set_setting ('ASYNCIFY' )
8151
8136
self .do_core_test ('test_emscripten_scan_registers.cpp' )
8152
8137
8153
- @no_memory64 ('TODO: asyncify for wasm64' )
8138
+ @no_wasm64 ('TODO: asyncify for wasm64' )
8154
8139
def test_asyncify_assertions (self ):
8155
8140
self .set_setting ('ASYNCIFY' )
8156
8141
self .set_setting ('ASYNCIFY_IMPORTS' , ['suspend' ])
@@ -8159,7 +8144,7 @@ def test_asyncify_assertions(self):
8159
8144
8160
8145
@no_lsan ('leaks asyncify stack during exit' )
8161
8146
@no_asan ('leaks asyncify stack during exit' )
8162
- @no_memory64 ('TODO: asyncify for wasm64' )
8147
+ @no_wasm64 ('TODO: asyncify for wasm64' )
8163
8148
def test_asyncify_during_exit (self ):
8164
8149
self .set_setting ('ASYNCIFY' )
8165
8150
self .set_setting ('ASSERTIONS' )
@@ -8178,7 +8163,7 @@ def test_asyncify_main_module(self):
8178
8163
self .do_core_test ('test_hello_world.c' )
8179
8164
8180
8165
@no_asan ('asyncify stack operations confuse asan' )
8181
- @no_memory64 ('TODO: asyncify for wasm64' )
8166
+ @no_wasm64 ('TODO: asyncify for wasm64' )
8182
8167
@no_wasm2js ('TODO: lazy loading in wasm2js' )
8183
8168
@parameterized ({
8184
8169
'conditional' : (True ,),
@@ -8754,7 +8739,7 @@ def test_template_class_deduction(self):
8754
8739
8755
8740
@no_wasm2js ('TODO: ASAN in wasm2js' )
8756
8741
@no_safe_heap ('asan does not work with SAFE_HEAP' )
8757
- @no_memory64 ('TODO: ASAN in memory64' )
8742
+ @no_wasm64 ('TODO: ASAN in memory64' )
8758
8743
@parameterized ({
8759
8744
'c' : ['test_asan_no_error.c' ],
8760
8745
'cpp' : ['test_asan_no_error.cpp' ],
@@ -8770,7 +8755,7 @@ def test_asan_no_error(self, name):
8770
8755
# stores, and then the stores identified as dead, which leaves nothing for
8771
8756
# asan to test. here we want to test asan itself, so we work around that.
8772
8757
@no_safe_heap ('asan does not work with SAFE_HEAP' )
8773
- @no_memory64 ('TODO: ASAN in memory64' )
8758
+ @no_wasm64 ('TODO: ASAN in memory64' )
8774
8759
@parameterized ({
8775
8760
'use_after_free_c' : ('test_asan_use_after_free.c' , [
8776
8761
'AddressSanitizer: heap-use-after-free on address' ,
@@ -8842,7 +8827,7 @@ def test_asan(self, name, expected_output, cflags=None):
8842
8827
8843
8828
@no_safe_heap ('asan does not work with SAFE_HEAP' )
8844
8829
@no_wasm2js ('TODO: ASAN in wasm2js' )
8845
- @no_memory64 ('TODO: ASAN in memory64' )
8830
+ @no_wasm64 ('TODO: ASAN in memory64' )
8846
8831
def test_asan_js_stack_op (self ):
8847
8832
self .emcc_args .append ('-fsanitize=address' )
8848
8833
self .set_setting ('ALLOW_MEMORY_GROWTH' )
@@ -8852,15 +8837,15 @@ def test_asan_js_stack_op(self):
8852
8837
8853
8838
@no_safe_heap ('asan does not work with SAFE_HEAP' )
8854
8839
@no_wasm2js ('TODO: ASAN in wasm2js' )
8855
- @no_memory64 ('TODO: ASAN in memory64' )
8840
+ @no_wasm64 ('TODO: ASAN in memory64' )
8856
8841
def test_asan_api (self ):
8857
8842
self .emcc_args .append ('-fsanitize=address' )
8858
8843
self .set_setting ('INITIAL_MEMORY' , '300mb' )
8859
8844
self .do_core_test ('test_asan_api.c' )
8860
8845
8861
8846
@no_safe_heap ('asan does not work with SAFE_HEAP' )
8862
8847
@no_wasm2js ('TODO: ASAN in wasm2js' )
8863
- @no_memory64 ('TODO: ASAN in memory64' )
8848
+ @no_wasm64 ('TODO: ASAN in memory64' )
8864
8849
def test_asan_modularized_with_closure (self ):
8865
8850
# the bug is that createModule() returns undefined, instead of the
8866
8851
# proper Promise object.
@@ -9311,7 +9296,7 @@ def test_emscripten_stack(self):
9311
9296
self .do_core_test ('test_stack_get_free.c' )
9312
9297
9313
9298
# Tests settings.ABORT_ON_WASM_EXCEPTIONS
9314
- @no_memory64 ('missing "crashing"' )
9299
+ @no_wasm64 ('missing "crashing"' )
9315
9300
def test_abort_on_exceptions (self ):
9316
9301
# Explictly disable EXIT_RUNTIME, since otherwise addOnPostRun does not work.
9317
9302
# https://github.com/emscripten-core/emscripten/issues/15080
@@ -9371,7 +9356,7 @@ def test_embind_lib_with_asyncify(self, args):
9371
9356
self .do_core_test ('embind_lib_with_asyncify.cpp' )
9372
9357
9373
9358
@no_asan ('asyncify stack operations confuse asan' )
9374
- @no_memory64 ('TODO: asyncify for wasm64' )
9359
+ @no_wasm64 ('TODO: asyncify for wasm64' )
9375
9360
def test_em_async_js (self ):
9376
9361
self .uses_es6 = True
9377
9362
self .set_setting ('ASYNCIFY' )
0 commit comments