diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-09-18 18:53:28 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-12-20 11:49:30 +0200 |
commit | 26d6ad370e05ff22128df6f0ff17538c8bc1030c (patch) | |
tree | 091a1588a4920a02303719b50bb4a98bb9b67458 /tests/test_core.py | |
parent | 0025736920d7f388929d606340e744f53a9dc1a4 (diff) |
Add new functions emscripten_log() in emscripten.h which allows printing out log messages with callstack information, and function emscripten_get_callstack(), which allows programmatically obtaining the current callstack.
Diffstat (limited to 'tests/test_core.py')
-rw-r--r-- | tests/test_core.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 476e0aa6..9991ccbd 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -6082,6 +6082,12 @@ 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.') + self.emcc_args += [path_from_root('system', 'lib', 'libcxxabi', 'src', 'cxa_demangle.cpp'), '-I'+path_from_root('system', 'lib', 'libcxxabi', 'include'), '--shell-file', path_from_root('tests', 'emscripten_log', 'shell-emscripten-log.html')] + 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(), "Demangled name is 'foo()'.") + def test_linespecific(self): if Settings.ASM_JS: return self.skip('asm always has corrections on') |