Skip to content

Commit

Permalink
Add a browser64_4gb mode and run a few tests in that mode. NFC
Browse files Browse the repository at this point in the history
This matches the wasm64_4gb mode which runs the tests with all data
offset such that it lives above 4gb.
  • Loading branch information
sbc100 committed Nov 21, 2023
1 parent 326600a commit 862cbdb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,13 @@ jobs:
steps:
- run-tests-chrome:
title: "browser64"
test_targets: "browser64 skip:browser64.test_4gb_fail"
# skip test_4gb_fail as it OOMs on the current bot
# Run a few tests in browser64_4gb mode too.
test_targets: "
browser64
skip:browser64.test_4gb_fail
browser64_4gb.test_emscripten_*
"
test-browser-firefox:
executor: bionic
steps:
Expand Down
1 change: 1 addition & 0 deletions test/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
'wasm64l',
'bigint',
'browser64',
'browser64_4gb',
]


Expand Down
9 changes: 9 additions & 0 deletions test/test_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -5887,3 +5887,12 @@ def setUp(self):
self.set_setting('MEMORY64')
self.emcc_args.append('-Wno-experimental')
self.require_wasm64()

class browser64_4gb(browser):
def setUp(self):
super().setUp()
self.set_setting('MEMORY64')
self.set_setting('INITIAL_MEMORY', '4200mb')
self.set_setting('GLOBAL_BASE', '4gb')
self.emcc_args.append('-Wno-experimental')
self.require_wasm64()

0 comments on commit 862cbdb

Please sign in to comment.