@@ -5438,10 +5438,10 @@ def test_wasm_worker_proxied_function(self):
5438
5438
@requires_v8
5439
5439
def test_zzz_zzz_4gb (self ):
5440
5440
# TODO Convert to an actual browser test when it reaches stable.
5441
- # For now, keep this in browser as this suite runs serially, which
5442
- # means we don't compete for memory with anything else (and run it
5443
- # at the very very end, to reduce the risk of it OOM-killing the
5444
- # browser).
5441
+ # For now, keep this in browser as this suite runs serially, which
5442
+ # means we don't compete for memory with anything else (and run it
5443
+ # at the very very end, to reduce the risk of it OOM-killing the
5444
+ # browser).
5445
5445
5446
5446
# test that we can allocate in the 2-4GB range, if we enable growth and
5447
5447
# set the max appropriately
@@ -5451,9 +5451,11 @@ def test_zzz_zzz_4gb(self):
5451
5451
# Tests that emmalloc supports up to 4GB Wasm heaps.
5452
5452
@no_firefox ('no 4GB support yet' )
5453
5453
def test_zzz_zzz_emmalloc_4gb (self ):
5454
- self .btest ('mem_growth.cpp' ,
5455
- expected = '-65536' , # == 4*1024*1024*1024 - 65536 casted to signed
5456
- args = ['-sMALLOC=emmalloc' , '-sABORTING_MALLOC=0' , '-sALLOW_MEMORY_GROWTH=1' , '-sMAXIMUM_MEMORY=4GB' ])
5454
+ # For now, keep this in browser as this suite runs serially, which
5455
+ # means we don't compete for memory with anything else (and run it
5456
+ # at the very very end, to reduce the risk of it OOM-killing the
5457
+ # browser).
5458
+ self .btest_exit ('test_mem_growth.c' , args = ['-sMALLOC=emmalloc' , '-sABORTING_MALLOC=0' , '-sALLOW_MEMORY_GROWTH=1' , '-sMAXIMUM_MEMORY=4GB' ])
5457
5459
5458
5460
# Test that it is possible to malloc() a huge 3GB memory block in 4GB mode using emmalloc.
5459
5461
# Also test emmalloc-memvalidate and emmalloc-memvalidate-verbose build configurations.
0 commit comments