Skip to content

Commit 1eba671

Browse files
committed
All interactive tests can now run with _2gb and 64_4gb modes
1 parent 8597567 commit 1eba671

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

test/test_interactive.py

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -341,24 +341,23 @@ def test_audio_worklet_params_mixing(self):
341341
shutil.copy(test_file('webaudio/audio_files/emscripten-bass.mp3'), 'audio_files/')
342342
self.btest_exit('webaudio/audioworklet_params_mixing.c', args=['-sAUDIO_WORKLET', '-sWASM_WORKERS'])
343343

344-
# Same as 'test_audio_worklet_2x_stereo_io' but with the worklet stack starting at 2GB in (tests for unsigned shifts in the memory offsets)
345-
def test_audio_worklet_stereo_io_2gb(self):
346-
os.mkdir('audio_files')
347-
shutil.copy(test_file('webaudio/audio_files/emscripten-beat.mp3'), 'audio_files/')
348-
shutil.copy(test_file('webaudio/audio_files/emscripten-bass.mp3'), 'audio_files/')
349-
self.btest_exit('webaudio/audioworklet_in_out_stereo.c', args=['-sAUDIO_WORKLET', '-sWASM_WORKERS', '-sINITIAL_MEMORY=2200mb', '-sGLOBAL_BASE=2gb'])
350-
351-
# Same as 'test_audio_worklet_stereo_io_2gb' but built for wasm64 with the worklet stack starting at 4GB
352-
def test_audio_worklet_stereo_io_4gb(self):
353-
os.mkdir('audio_files')
354-
shutil.copy(test_file('webaudio/audio_files/emscripten-beat.mp3'), 'audio_files/')
355-
shutil.copy(test_file('webaudio/audio_files/emscripten-bass.mp3'), 'audio_files/')
356-
self.btest_exit('webaudio/audioworklet_in_out_stereo.c', args=['-sAUDIO_WORKLET', '-sWASM_WORKERS', '-sMEMORY64', '-sINITIAL_MEMORY=4200mb', '-sGLOBAL_BASE=4gb'])
357-
358344

359345
class interactive64(interactive):
360346
def setUp(self):
361347
super().setUp()
362348
self.set_setting('MEMORY64')
363-
self.emcc_args.append('-Wno-experimental')
364349
self.require_wasm64()
350+
351+
class interactive64_4gb(interactive):
352+
def setUp(self):
353+
super().setUp()
354+
self.set_setting('MEMORY64')
355+
self.set_setting('INITIAL_MEMORY', '4200mb')
356+
self.set_setting('GLOBAL_BASE', '4gb')
357+
self.require_wasm64()
358+
359+
class interactive_2gb(interactive):
360+
def setUp(self):
361+
super().setUp()
362+
self.set_setting('INITIAL_MEMORY', '2200mb')
363+
self.set_setting('GLOBAL_BASE', '2gb')

0 commit comments

Comments
 (0)