diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-20 17:22:51 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-20 17:22:51 -0800 |
commit | 702cf8f1e8a173a15a745c5ac3bae654c99fe33c (patch) | |
tree | 5046a3c593d3d990c824a82c30a666918a8844a6 /tests/test_core.py | |
parent | 4afedfb8ed66cc1aa95ff515baee3f2c762f63c2 (diff) | |
parent | eb27ff87ae15d0dd9855b06a055b590235d8c3a6 (diff) |
Merge pull request #1635 from juj/emscripten_log
emscripten_log() and emscripten_get_callstack()
Diffstat (limited to 'tests/test_core.py')
-rw-r--r-- | tests/test_core.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 476e0aa6..80fb3cc5 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -6082,6 +6082,11 @@ def process(filename): dirname = self.get_dir() self.build(src, dirname, os.path.join(dirname, 'src.cpp'), post_build=(None, post)) + def test_emscripten_log(self): + if self.emcc_args is None: return self.skip('This test needs libc.') + if '-g' not in Building.COMPILER_TEST_OPTS: Building.COMPILER_TEST_OPTS.append('-g') + self.do_run('#define RUN_FROM_JS_SHELL\n' + open(path_from_root('tests', 'emscripten_log', 'emscripten_log.cpp')).read(), "Success!") + def test_linespecific(self): if Settings.ASM_JS: return self.skip('asm always has corrections on') |