diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-24 10:57:59 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-24 10:57:59 -0700 |
commit | a04d065e40adbca5694c608331e137a6280795bd (patch) | |
tree | 49834ea2334f40e478d7274d8f965e434464d883 /tests/runner.py | |
parent | 637ad69e97761fde5ec5dee882b14f3bb49f561e (diff) | |
parent | 7eaba0c3322cd5e44200bedcd070e6d149f413cd (diff) |
Merge pull request #1317 from michaeljbishop/sdl-mixer-sound-leak
SDL mixer sound leak
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 672ae456..637d2e52 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -12406,6 +12406,13 @@ elif 'browser' in str(sys.argv): Popen([PYTHON, EMCC, '-O2', '--closure', '1', '--minify', '0', os.path.join(self.get_dir(), 'sdl_audio.c'), '--preload-file', 'sound.ogg', '--preload-file', 'sound2.wav', '--preload-file', 'bad.ogg', '-o', 'page.html', '-s', 'EXPORTED_FUNCTIONS=["_main", "_play", "_play2"]']).communicate() self.run_browser('page.html', '', '/report_result?1') + def test_sdl_audio_mix_channels(self): + shutil.copyfile(path_from_root('tests', 'sounds', 'noise.ogg'), os.path.join(self.get_dir(), 'sound.ogg')) + open(os.path.join(self.get_dir(), 'sdl_audio_mix_channels.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'sdl_audio_mix_channels.c')).read())) + + Popen([PYTHON, EMCC, '-O2', '--minify', '0', os.path.join(self.get_dir(), 'sdl_audio_mix_channels.c'), '--preload-file', 'sound.ogg', '-o', 'page.html']).communicate() + self.run_browser('page.html', '', '/report_result?1') + def test_sdl_audio_mix(self): shutil.copyfile(path_from_root('tests', 'sounds', 'pluck.ogg'), os.path.join(self.get_dir(), 'sound.ogg')) shutil.copyfile(path_from_root('tests', 'sounds', 'the_entertainer.ogg'), os.path.join(self.get_dir(), 'music.ogg')) |