Skip to content

Commit

Permalink
[test] Remove redundant quotes in -s arguments. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 committed Jan 6, 2025
1 parent baf762b commit 086ca23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/test_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3420,7 +3420,7 @@ def test_modularize_and_preload_files(self, args):
create_file('dummy_file', 'dummy')
# compile the code with the modularize feature and the preload-file option enabled
# no wasm, since this tests customizing total memory at runtime
self.compile_btest('test.c', ['-sWASM=0', '-sIMPORTED_MEMORY', '-sMODULARIZE', '-sEXPORT_NAME="Foo"', '--preload-file', 'dummy_file'] + args, reporting=Reporting.JS_ONLY)
self.compile_btest('test.c', ['-sWASM=0', '-sIMPORTED_MEMORY', '-sMODULARIZE', '-sEXPORT_NAME=Foo', '--preload-file', 'dummy_file'] + args, reporting=Reporting.JS_ONLY)
create_file('a.html', '''
<script src="a.out.js"></script>
<script>
Expand Down Expand Up @@ -3680,7 +3680,7 @@ def test_pthread_64bit_cxx11_atomics(self, opt):

# Test c++ std::thread::hardware_concurrency()
def test_pthread_hardware_concurrency(self):
self.btest_exit('pthread/test_pthread_hardware_concurrency.cpp', args=['-O2', '-pthread', '-sPTHREAD_POOL_SIZE="navigator.hardwareConcurrency"'])
self.btest_exit('pthread/test_pthread_hardware_concurrency.cpp', args=['-O2', '-pthread', '-sPTHREAD_POOL_SIZE=navigator.hardwareConcurrency'])

# Test that we error if not ALLOW_BLOCKING_ON_MAIN_THREAD
def test_pthread_main_thread_blocking_wait(self):
Expand Down
6 changes: 3 additions & 3 deletions test/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -6740,7 +6740,7 @@ def test_require_modularize(self):
create_file('run.js', 'var m = require("./a.out.js"); m();')
output = self.run_js('run.js')
self.assertEqual(output, 'hello, world!\n')
self.run_process([EMCC, test_file('hello_world.c'), '-sMODULARIZE', '-sEXPORT_NAME="NotModule"', '-sASSERTIONS=0'])
self.run_process([EMCC, test_file('hello_world.c'), '-sMODULARIZE', '-sEXPORT_NAME=NotModule', '-sASSERTIONS=0'])
self.assertContained('module.exports = NotModule;', read_file('a.out.js'))
output = self.run_js('run.js')
self.assertEqual(output, 'hello, world!\n')
Expand Down Expand Up @@ -6829,7 +6829,7 @@ def test_define_modularize(self):
output = self.run_js('run_module.js')
self.assertContained('hello, world!\n', output)

self.run_process([EMCC, test_file('hello_world.c'), '-sMODULARIZE', '-sEXPORT_NAME="NotModule"', '-sASSERTIONS=0'])
self.run_process([EMCC, test_file('hello_world.c'), '-sMODULARIZE', '-sEXPORT_NAME=NotModule', '-sASSERTIONS=0'])
src = 'var module = 0; ' + read_file('a.out.js')
create_file('a.out.js', src)
self.assertContained("define([], () => NotModule);", src)
Expand Down Expand Up @@ -8692,7 +8692,7 @@ def build(args):

build([])
base_size = os.path.getsize('a.out.wasm')
out = build(['-sBINARYEN_EXTRA_PASSES="--metrics"'])
out = build(['-sBINARYEN_EXTRA_PASSES=--metrics'])
# and --metrics output appears
self.assertContained('[funcs]', out)
# adding --metrics should not affect code size
Expand Down

0 comments on commit 086ca23

Please sign in to comment.