@@ -137,12 +137,13 @@ def test_sdl2_audio_beeps(self):
137
137
# TODO: investigate why this does not pass
138
138
self .btest_exit ('browser/test_sdl2_audio_beep.cpp' , args = ['-O2' , '--closure=1' , '--minify=0' , '-sDISABLE_EXCEPTION_CATCHING=0' , '-sUSE_SDL=2' ])
139
139
140
- def test_openal_playback (self ):
140
+ @parameterized ({
141
+ '' : ([],),
142
+ 'proxy_to_pthread' : (['-sPROXY_TO_PTHREAD' , '-pthread' ],),
143
+ })
144
+ def test_openal_playback (self , args ):
141
145
shutil .copyfile (test_file ('sounds/audio.wav' ), self .in_dir ('audio.wav' ))
142
-
143
- for args in [[], ['-pthread' , '-sPROXY_TO_PTHREAD' ]]:
144
- self .compile_btest ('openal_playback.cpp' , ['-O2' , '--preload-file' , 'audio.wav' , '-o' , 'page.html' ] + args )
145
- self .run_browser ('page.html' , '/report_result?1' )
146
+ self .btest ('openal_playback.cpp' , '1' , args = ['-O2' , '--preload-file' , 'audio.wav' ] + args )
146
147
147
148
def test_openal_buffers (self ):
148
149
self .btest ('openal_buffers.c' , '0' , args = ['--preload-file' , test_file ('sounds/the_entertainer.wav' ) + '@/' ],)
@@ -193,8 +194,7 @@ def get_freealut_library(self):
193
194
def test_freealut (self ):
194
195
src = test_file ('third_party/freealut/examples/hello_world.c' )
195
196
inc = test_file ('third_party/freealut/include' )
196
- self .compile_btest (src , ['-O2' , '-o' , 'page.html' , '-I' + inc ] + self .get_freealut_library ())
197
- self .run_browser ('page.html' , message = 'You should hear "Hello World!"' )
197
+ self .btest_exit (src , args = ['-O2' , '-I' + inc ] + self .get_freealut_library ())
198
198
199
199
def test_glfw_cursor_disabled (self ):
200
200
self .btest_exit ('interactive/test_glfw_cursor_disabled.c' , args = ['-sUSE_GLFW=3' , '-lglfw' , '-lGL' ])
0 commit comments