Skip to content

Commit 8c40c46

Browse files
authored
Parameterize test_pthread_hello_thread. NFC (#20966)
1 parent 3f299c3 commit 8c40c46

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/test_browser.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5021,14 +5021,18 @@ def test_emscripten_animate_canvas_element_size(self, args, main_loop):
50215021
self.btest_exit('canvas_animate_resize.cpp', args=cmd)
50225022

50235023
# Tests the absolute minimum pthread-enabled application.
5024+
@parameterized({
5025+
'': ([],),
5026+
'modularize': (['-sMODULARIZE', '-sEXPORT_NAME=MyModule', '--shell-file',
5027+
test_file('shell_that_launches_modularize.html')],),
5028+
})
50245029
@parameterized({
50255030
'': ([],),
50265031
'O3': (['-O3'],)
50275032
})
50285033
@requires_threads
5029-
def test_pthread_hello_thread(self, opts):
5030-
for modularize in [[], ['-sMODULARIZE', '-sEXPORT_NAME=MyModule', '--shell-file', test_file('shell_that_launches_modularize.html')]]:
5031-
self.btest_exit('pthread/hello_thread.c', args=['-pthread'] + modularize + opts)
5034+
def test_pthread_hello_thread(self, opts, modularize):
5035+
self.btest_exit('pthread/hello_thread.c', args=['-pthread'] + modularize + opts)
50325036

50335037
# Tests that a pthreads build of -sMINIMAL_RUNTIME works well in different build modes
50345038
@parameterized({

0 commit comments

Comments
 (0)