aboutsummaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-05-27 17:20:12 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-05-27 17:20:12 -0700
commite792dc4e6aea8bd4b95eada40f85e8c0598dfc3d (patch)
tree565fada0d7733fddeecdc0baa67cba3850f09374 /tests/test_core.py
parentafd5a42acfb5885bcb48aae1a5114396f5e54481 (diff)
fix ccall regex for minified code, and add testing
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 46d3964c..7e15f1b8 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -5453,9 +5453,6 @@ def process(filename):
### Integration tests
def test_ccall(self):
- if self.emcc_args is not None and '-O2' in self.emcc_args:
- self.emcc_args += ['--closure', '1'] # Use closure here, to test we export things right
-
post = '''
def process(filename):
src = \'\'\'
@@ -5499,6 +5496,11 @@ def process(filename):
self.do_run_from_file(src, output, post_build=post)
+ if self.emcc_args is not None and '-O2' in self.emcc_args:
+ print 'with closure'
+ self.emcc_args += ['--closure', '1']
+ self.do_run_from_file(src, output, post_build=post)
+
def test_pgo(self):
if Settings.ASM_JS: return self.skip('PGO does not work in asm mode')