diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-03-24 20:23:11 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-03-24 20:23:11 -0700 |
commit | 5817cd8af0036d6593f6e0fb314a291f40e8056a (patch) | |
tree | 51457d9f89b0eef4983d93ca996006c327194709 /tests | |
parent | 63ed033209d1880d6f8f6b47c5e1bedb01f0b330 (diff) |
--emit-symbol-map option
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_other.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_other.py b/tests/test_other.py index f9b0009d..9146888c 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -2669,3 +2669,16 @@ int main() } ''', [3, 1, 1]) + def test_symbol_map(self): + for m in [0, 1]: + self.clear() + cmd = [PYTHON, EMCC, path_from_root('tests', 'hello_world.c'), '-O2'] + if m: cmd += ['--emit-symbol-map'] + print cmd + stdout, stderr = Popen(cmd, stderr=PIPE).communicate() + assert ('''wrote symbol map file''' in stderr) == m, stderr + assert (os.path.exists('a.out.js.symbols') == m), stderr + if m: + symbols = open('a.out.js.symbols').read() + assert ':_main' in symbols + |