26
26
from common import RunnerCore , path_from_root , requires_native_clang , test_file , create_file
27
27
from common import skip_if , needs_dylink , no_windows , no_mac , is_slow_test , parameterized
28
28
from common import env_modify , with_env_modify , disabled , flaky , node_pthreads , also_with_wasm_bigint
29
- from common import read_file , read_binary , requires_v8 , requires_node , requires_node_canary
29
+ from common import read_file , read_binary , requires_v8 , requires_node , requires_wasm2js , requires_node_canary
30
30
from common import compiler_for , crossplatform , no_4gb , no_2gb
31
31
from common import with_both_sjlj , also_with_standalone_wasm , can_do_standalone , no_wasm64
32
32
from common import NON_ZERO , WEBIDL_BINDER , EMBUILDER , PYTHON
@@ -864,8 +864,8 @@ def test_emmalloc_memory_statistics(self):
864
864
self .do_core_test ('test_emmalloc_memory_statistics.c' , out_suffix = out_suffix )
865
865
866
866
@no_optimize ('output is sensitive to optimization flags, so only test unoptimized builds' )
867
- @no_wasm64 ('output is sensitive to absolute data layout' )
868
867
@no_2gb ('output is sensitive to absolute data layout' )
868
+ @no_4gb ('output is sensitive to absolute data layout' )
869
869
@no_asan ('ASan does not support custom memory allocators' )
870
870
@no_lsan ('LSan does not support custom memory allocators' )
871
871
def test_emmalloc_trim (self ):
@@ -8396,8 +8396,7 @@ def verify_broken(args):
8396
8396
8397
8397
# Test basic wasm2js functionality in all core compilation modes.
8398
8398
@no_sanitize ('no wasm2js support yet in sanitizers' )
8399
- @no_wasm64 ('no wasm2js support yet with wasm64' )
8400
- @no_2gb ('no wasm2js support for >2gb address space' )
8399
+ @requires_wasm2js
8401
8400
def test_wasm2js (self ):
8402
8401
if not self .is_wasm ():
8403
8402
self .skipTest ('redundant to test wasm2js in wasm2js* mode' )
@@ -8413,8 +8412,7 @@ def test_wasm2js(self):
8413
8412
self .assertNotExists ('test_hello_world.js.mem' )
8414
8413
8415
8414
@no_sanitize ('no wasm2js support yet in sanitizers' )
8416
- @no_wasm64 ('no wasm2js support yet with wasm64' )
8417
- @no_2gb ('no wasm2js support for >2gb address space' )
8415
+ @requires_wasm2js
8418
8416
def test_maybe_wasm2js (self ):
8419
8417
if not self .is_wasm ():
8420
8418
self .skipTest ('redundant to test wasm2js in wasm2js* mode' )
@@ -8432,7 +8430,7 @@ def test_maybe_wasm2js(self):
8432
8430
self .assertContained ('hello, world!' , self .run_js ('do_wasm2js.js' ))
8433
8431
8434
8432
@no_asan ('no wasm2js support yet in asan' )
8435
- @no_wasm64 ( 'no wasm2js support yet with wasm64' )
8433
+ @requires_wasm2js
8436
8434
@parameterized ({
8437
8435
'' : ([],),
8438
8436
'minimal_runtime' : (['-sMINIMAL_RUNTIME' ],),
0 commit comments