aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-20 17:51:47 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-20 18:02:35 -0800
commit51204c52e42c8d6b6754d50438a032c7cd8e553b (patch)
tree9de5c0a88c4ba255547a111ee75541165117993d
parentce15abc1d356fda7a5509d449c9c18623a9b4ea3 (diff)
enable more tests in fastcomp
-rw-r--r--tests/test_core.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index f27491c7..7c16f55e 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -5997,7 +5997,6 @@ def process(filename):
def test_source_map(self):
if Settings.USE_TYPED_ARRAYS != 2: return self.skip("doesn't pass without typed arrays")
- if os.environ.get('EMCC_FAST_COMPILER') == '1': return self.skip('todo in fastcomp')
if NODE_JS not in JS_ENGINES: return self.skip('sourcemapper requires Node to run')
if '-g' not in Building.COMPILER_TEST_OPTS: Building.COMPILER_TEST_OPTS.append('-g')
@@ -6082,7 +6081,6 @@ def process(filename):
if Settings.USE_TYPED_ARRAYS != 2: return self.skip("doesn't pass without typed arrays")
if '-g4' not in Building.COMPILER_TEST_OPTS: Building.COMPILER_TEST_OPTS.append('-g4')
if NODE_JS not in JS_ENGINES: return self.skip('sourcemapper requires Node to run')
- if os.environ.get('EMCC_FAST_COMPILER') == '1': return self.skip('todo in fastcomp')
src = '''
#include <stdio.h>
@@ -6107,7 +6105,7 @@ def process(filename):
tools.shared.NODE_JS, [map_filename]))
with open(filename) as f: lines = f.readlines()
for m in mappings:
- if m['originalLine'] == 5 and '__cxa_throw' in lines[m['generatedLine']]:
+ if m['originalLine'] == 5 and '__cxa_throw' in lines[m['generatedLine']-1]: # -1 to fix 0-start vs 1-start
return
assert False, 'Must label throw statements with line numbers'