Skip to content

Commit 6c85448

Browse files
authored
Consistent use of -s in test code. NFC (#17379)
1 parent f74d51a commit 6c85448

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

tests/test_browser.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1867,8 +1867,8 @@ def test_emscripten_fs_api(self):
18671867
self.btest_exit('emscripten_fs_api_browser.c', assert_returncode=1, args=['-lSDL'])
18681868

18691869
def test_emscripten_fs_api2(self):
1870-
self.btest_exit('emscripten_fs_api_browser2.c', assert_returncode=1, args=['-s', "ASSERTIONS=0"])
1871-
self.btest_exit('emscripten_fs_api_browser2.c', assert_returncode=1, args=['-s', "ASSERTIONS=1"])
1870+
self.btest_exit('emscripten_fs_api_browser2.c', assert_returncode=1, args=['-sASSERTIONS=0'])
1871+
self.btest_exit('emscripten_fs_api_browser2.c', assert_returncode=1, args=['-sASSERTIONS=1'])
18721872

18731873
@requires_threads
18741874
def test_emscripten_main_loop(self):
@@ -4717,10 +4717,10 @@ def test_pthread_run_script(self):
47174717
def test_emscripten_animate_canvas_element_size(self):
47184718
for args in [
47194719
['-DTEST_EMSCRIPTEN_SET_MAIN_LOOP=1'],
4720-
['-DTEST_EMSCRIPTEN_SET_MAIN_LOOP=1', '-sPROXY_TO_PTHREAD', '-sUSE_PTHREADS', '-s', 'OFFSCREEN_FRAMEBUFFER=1'],
4721-
['-DTEST_EMSCRIPTEN_SET_MAIN_LOOP=1', '-sPROXY_TO_PTHREAD', '-sUSE_PTHREADS', '-s', 'OFFSCREEN_FRAMEBUFFER=1', '-DTEST_EXPLICIT_CONTEXT_SWAP=1'],
4722-
['-DTEST_EXPLICIT_CONTEXT_SWAP=1', '-sPROXY_TO_PTHREAD', '-sUSE_PTHREADS', '-s', 'OFFSCREEN_FRAMEBUFFER=1'],
4723-
['-DTEST_EXPLICIT_CONTEXT_SWAP=1', '-sPROXY_TO_PTHREAD', '-sUSE_PTHREADS', '-s', 'OFFSCREEN_FRAMEBUFFER=1', '-DTEST_MANUALLY_SET_ELEMENT_CSS_SIZE=1'],
4720+
['-DTEST_EMSCRIPTEN_SET_MAIN_LOOP=1', '-sPROXY_TO_PTHREAD', '-sUSE_PTHREADS', '-sOFFSCREEN_FRAMEBUFFER'],
4721+
['-DTEST_EMSCRIPTEN_SET_MAIN_LOOP=1', '-sPROXY_TO_PTHREAD', '-sUSE_PTHREADS', '-sOFFSCREEN_FRAMEBUFFER', '-DTEST_EXPLICIT_CONTEXT_SWAP=1'],
4722+
['-DTEST_EXPLICIT_CONTEXT_SWAP=1', '-sPROXY_TO_PTHREAD', '-sUSE_PTHREADS', '-sOFFSCREEN_FRAMEBUFFER'],
4723+
['-DTEST_EXPLICIT_CONTEXT_SWAP=1', '-sPROXY_TO_PTHREAD', '-sUSE_PTHREADS', '-sOFFSCREEN_FRAMEBUFFER', '-DTEST_MANUALLY_SET_ELEMENT_CSS_SIZE=1'],
47244724
['-DTEST_EMSCRIPTEN_SET_MAIN_LOOP=1', '-sOFFSCREENCANVAS_SUPPORT'],
47254725
]:
47264726
cmd = ['-lGL', '-O3', '-g2', '--shell-file', test_file('canvas_animate_resize_shell.html'), '-sGL_DEBUG', '--threadprofiler', '-sASSERTIONS'] + args

tests/test_core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7794,8 +7794,7 @@ def test_modularize_closure_pre(self):
77947794
'--extern-post-js=post.js',
77957795
'--closure=1',
77967796
'-g1',
7797-
'-s',
7798-
'MODULARIZE=1',
7797+
'-sMODULARIZE',
77997798
]
78007799
self.do_core_test('modularize_closure_pre.c')
78017800

tests/test_other.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2074,7 +2074,7 @@ def test_undefined_exported_function(self):
20742074
self.run_process(cmd)
20752075

20762076
# adding a missing symbol to EXPORTED_FUNCTIONS should cause failure
2077-
cmd += ['-s', "EXPORTED_FUNCTIONS=foobar"]
2077+
cmd += ['-sEXPORTED_FUNCTIONS=foobar']
20782078
err = self.expect_fail(cmd)
20792079
self.assertContained('undefined exported symbol: "foobar"', err)
20802080

0 commit comments

Comments
 (0)