Skip to content

Commit d0de8d8

Browse files
authored
[test] Remove redundant quotes in -s arguments. NFC (emscripten-core#23299)
1 parent 21d9dd8 commit d0de8d8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/test_browser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3420,7 +3420,7 @@ def test_modularize_and_preload_files(self, args):
34203420
create_file('dummy_file', 'dummy')
34213421
# compile the code with the modularize feature and the preload-file option enabled
34223422
# no wasm, since this tests customizing total memory at runtime
3423-
self.compile_btest('test.c', ['-sWASM=0', '-sIMPORTED_MEMORY', '-sMODULARIZE', '-sEXPORT_NAME="Foo"', '--preload-file', 'dummy_file'] + args, reporting=Reporting.JS_ONLY)
3423+
self.compile_btest('test.c', ['-sWASM=0', '-sIMPORTED_MEMORY', '-sMODULARIZE', '-sEXPORT_NAME=Foo', '--preload-file', 'dummy_file'] + args, reporting=Reporting.JS_ONLY)
34243424
create_file('a.html', '''
34253425
<script src="a.out.js"></script>
34263426
<script>
@@ -3680,7 +3680,7 @@ def test_pthread_64bit_cxx11_atomics(self, opt):
36803680

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

36853685
# Test that we error if not ALLOW_BLOCKING_ON_MAIN_THREAD
36863686
def test_pthread_main_thread_blocking_wait(self):

test/test_other.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6740,7 +6740,7 @@ def test_require_modularize(self):
67406740
create_file('run.js', 'var m = require("./a.out.js"); m();')
67416741
output = self.run_js('run.js')
67426742
self.assertEqual(output, 'hello, world!\n')
6743-
self.run_process([EMCC, test_file('hello_world.c'), '-sMODULARIZE', '-sEXPORT_NAME="NotModule"', '-sASSERTIONS=0'])
6743+
self.run_process([EMCC, test_file('hello_world.c'), '-sMODULARIZE', '-sEXPORT_NAME=NotModule', '-sASSERTIONS=0'])
67446744
self.assertContained('module.exports = NotModule;', read_file('a.out.js'))
67456745
output = self.run_js('run.js')
67466746
self.assertEqual(output, 'hello, world!\n')
@@ -6829,7 +6829,7 @@ def test_define_modularize(self):
68296829
output = self.run_js('run_module.js')
68306830
self.assertContained('hello, world!\n', output)
68316831

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

86938693
build([])
86948694
base_size = os.path.getsize('a.out.wasm')
8695-
out = build(['-sBINARYEN_EXTRA_PASSES="--metrics"'])
8695+
out = build(['-sBINARYEN_EXTRA_PASSES=--metrics'])
86968696
# and --metrics output appears
86978697
self.assertContained('[funcs]', out)
86988698
# adding --metrics should not affect code size

0 commit comments

Comments
 (0)