Skip to content

Commit bbb2e36

Browse files
authored
[test] Remove zzz prefix from high memory browser tests (#20761)
- remove unneeded `require_wasm64` hack (the default node version we ship now supports wasm64 so it is no longer needed) - remove unneeded `requires_v8` from high memory tests - remove unneeded `@no_wasm64` from test_4gb_fail
1 parent 10725ec commit bbb2e36

File tree

2 files changed

+14
-27
lines changed

2 files changed

+14
-27
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,14 +785,14 @@ jobs:
785785
steps:
786786
- run-tests-chrome:
787787
title: "browser"
788-
# skip test_zzz_zzz_4gb_fail as it OOMs on the current bot
789-
test_targets: "browser skip:browser.test_zzz_zzz_4gb_fail"
788+
# skip test_4gb_fail as it OOMs on the current bot
789+
test_targets: "browser skip:browser.test_4gb_fail"
790790
test-browser-chrome-wasm64:
791791
executor: bionic
792792
steps:
793793
- run-tests-chrome:
794794
title: "browser64"
795-
test_targets: "browser64 skip:browser64.test_zzz_zzz_4gb_fail"
795+
test_targets: "browser64 skip:browser64.test_4gb_fail"
796796
test-browser-firefox:
797797
executor: bionic
798798
steps:

test/test_browser.py

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
from common import BrowserCore, RunnerCore, path_from_root, has_browser, EMTEST_BROWSER, Reporting
2525
from common import create_file, parameterized, ensure_dir, disabled, test_file, WEBIDL_BINDER
26-
from common import read_file, requires_v8, also_with_minimal_runtime, EMRUN, no_wasm64
26+
from common import read_file, also_with_minimal_runtime, EMRUN, no_wasm64
2727
from tools import shared
2828
from tools import ports
2929
from tools import utils
@@ -234,10 +234,6 @@ def setUp(self):
234234
'-Wno-int-conversion',
235235
]
236236

237-
def require_wasm64(self):
238-
# All the browsers we run on support wasm64 (Chrome and Firefox).
239-
return True
240-
241237
def require_wasm2js(self):
242238
if self.is_wasm64():
243239
self.skipTest('wasm2js is not compatible with MEMORY64')
@@ -1691,9 +1687,7 @@ def test_worker(self):
16911687
self.run_browser('main.html', '/report_result?hello from worker, and :' + ('data for w' if file_data else '') + ':')
16921688

16931689
# code should run standalone too
1694-
# (doesn't work under browser64 due to `require_wasm64` hack in this class)
1695-
if not self.is_wasm64():
1696-
self.assertContained('you should not see this text when in a worker!', self.run_js('worker.js'))
1690+
self.assertContained('you should not see this text when in a worker!', self.run_js('worker.js'))
16971691

16981692
@no_wasmfs('https://github.com/emscripten-core/emscripten/issues/19608')
16991693
def test_mmap_lazyfile(self):
@@ -5561,8 +5555,7 @@ def test_wasm_worker_proxied_function(self):
55615555
self.btest('wasm_worker/proxied_function.c', expected='0', args=['--js-library', test_file('wasm_worker/proxied_function.js'), '-sWASM_WORKERS', '-sASSERTIONS=0'])
55625556

55635557
@no_firefox('no 4GB support yet')
5564-
@requires_v8
5565-
def test_zzz_zzz_4gb(self):
5558+
def test_4gb(self):
55665559
# TODO Convert to an actual browser test when it reaches stable.
55675560
# For now, keep this in browser as this suite runs serially, which
55685561
# means we don't compete for memory with anything else (and run it
@@ -5572,11 +5565,11 @@ def test_zzz_zzz_4gb(self):
55725565
# test that we can allocate in the 2-4GB range, if we enable growth and
55735566
# set the max appropriately
55745567
self.emcc_args += ['-O2', '-sALLOW_MEMORY_GROWTH', '-sMAXIMUM_MEMORY=4GB']
5575-
self.do_run_in_out_file_test('browser', 'test_4GB.cpp')
5568+
self.do_run_in_out_file_test('browser/test_4GB.cpp')
55765569

55775570
# Tests that emmalloc supports up to 4GB Wasm heaps.
55785571
@no_firefox('no 4GB support yet')
5579-
def test_zzz_zzz_emmalloc_4gb(self):
5572+
def test_emmalloc_4gb(self):
55805573
# For now, keep this in browser as this suite runs serially, which
55815574
# means we don't compete for memory with anything else (and run it
55825575
# at the very very end, to reduce the risk of it OOM-killing the
@@ -5653,12 +5646,11 @@ def test_wasmfs_opfs_errors(self):
56535646
self.btest(test, args=args, expected="0")
56545647

56555648
@no_firefox('no 4GB support yet')
5656-
def test_zzz_zzz_emmalloc_memgrowth(self, *args):
5649+
def test_emmalloc_memgrowth(self, *args):
56575650
self.btest('emmalloc_memgrowth.cpp', expected='0', args=['-sMALLOC=emmalloc', '-sALLOW_MEMORY_GROWTH=1', '-sABORTING_MALLOC=0', '-sASSERTIONS=2', '-sMINIMAL_RUNTIME=1', '-sMAXIMUM_MEMORY=4GB'])
56585651

56595652
@no_firefox('no 4GB support yet')
5660-
@requires_v8
5661-
def test_zzz_zzz_2gb_fail(self):
5653+
def test_2gb_fail(self):
56625654
# TODO Convert to an actual browser test when it reaches stable.
56635655
# For now, keep this in browser as this suite runs serially, which
56645656
# means we don't compete for memory with anything else (and run it
@@ -5668,12 +5660,10 @@ def test_zzz_zzz_2gb_fail(self):
56685660
# test that growth doesn't go beyond 2GB without the max being set for that,
56695661
# and that we can catch an allocation failure exception for that
56705662
self.emcc_args += ['-O2', '-sALLOW_MEMORY_GROWTH', '-sMAXIMUM_MEMORY=2GB']
5671-
self.do_run_in_out_file_test('browser', 'test_2GB_fail.cpp')
5663+
self.do_run_in_out_file_test('browser/test_2GB_fail.cpp')
56725664

56735665
@no_firefox('no 4GB support yet')
5674-
@requires_v8
5675-
@no_wasm64()
5676-
def test_zzz_zzz_4gb_fail(self):
5666+
def test_4gb_fail(self):
56775667
# TODO Convert to an actual browser test when it reaches stable.
56785668
# For now, keep this in browser as this suite runs serially, which
56795669
# means we don't compete for memory with anything else (and run it
@@ -5682,12 +5672,9 @@ def test_zzz_zzz_4gb_fail(self):
56825672

56835673
# test that we properly report an allocation error that would overflow over
56845674
# 4GB.
5685-
if self.get_setting('MEMORY64'):
5686-
self.set_setting('MAXIMUM_MEMORY', '6GB')
5687-
else:
5688-
self.set_setting('MAXIMUM_MEMORY', '4GB')
5675+
self.set_setting('MAXIMUM_MEMORY', '4GB')
56895676
self.emcc_args += ['-O2', '-sALLOW_MEMORY_GROWTH', '-sABORTING_MALLOC=0', '-sASSERTIONS']
5690-
self.do_run_in_out_file_test('browser', 'test_4GB_fail.cpp')
5677+
self.do_run_in_out_file_test('browser/test_4GB_fail.cpp')
56915678

56925679
# Tests that Emscripten-compiled applications can be run when a slash in the URL query or fragment of the js file
56935680
def test_browser_run_with_slash_in_query_and_hash(self):

0 commit comments

Comments
 (0)