Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@ def do_run(self, src, expected_output=None, force_c=False, **kwargs):
def do_runf(self, filename, expected_output=None, **kwargs):
return self._build_and_run(filename, expected_output, **kwargs)

def do_run_in_out_file_test(self, srcfile, **kwargs):
def do_runf_out_file(self, srcfile, **kwargs):
srcfile = maybe_test_file(srcfile)
out_suffix = kwargs.pop('out_suffix', '')
outfile = utils.unsuffixed(srcfile) + out_suffix + '.out'
Expand Down
6 changes: 3 additions & 3 deletions test/test_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -5239,7 +5239,7 @@ def test_4gb(self):
# test that we can allocate in the 2-4GB range, if we enable growth and
# set the max appropriately
self.cflags += ['-O2', '-sALLOW_MEMORY_GROWTH', '-sMAXIMUM_MEMORY=4GB']
self.do_run_in_out_file_test('browser/test_4gb.cpp')
self.do_runf_out_file('browser/test_4gb.cpp')

# Tests that emmalloc supports up to 4GB Wasm heaps.
@no_firefox('no 4GB support yet')
Expand Down Expand Up @@ -5375,7 +5375,7 @@ def test_2gb_fail(self):
# test that growth doesn't go beyond 2GB without the max being set for that,
# and that we can catch an allocation failure exception for that
self.cflags += ['-O2', '-sALLOW_MEMORY_GROWTH', '-sMAXIMUM_MEMORY=2GB']
self.do_run_in_out_file_test('browser/test_2gb_fail.c')
self.do_runf_out_file('browser/test_2gb_fail.c')

@no_firefox('no 4GB support yet')
@no_highmem('uses MAXIMUM_MEMORY')
Expand All @@ -5390,7 +5390,7 @@ def test_4gb_fail(self):
# 4GB.
self.set_setting('MAXIMUM_MEMORY', '4GB')
self.cflags += ['-O2', '-sALLOW_MEMORY_GROWTH', '-sABORTING_MALLOC=0', '-sASSERTIONS']
self.do_run_in_out_file_test('browser/test_4gb_fail.c')
self.do_runf_out_file('browser/test_4gb_fail.c')

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