diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-21 18:15:26 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-21 18:15:26 -0800 |
commit | b2895899579059b4effad2d4794e288cd45445dc (patch) | |
tree | 70f97648065f533513cf4b5babb53f0fff74ed52 | |
parent | 840b032df1748bbc46ebffb6d5634f2da1491298 (diff) |
add closure compiler in cubescript for additional coverage
-rw-r--r-- | tests/runner.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index e527ec9c..fe06bf87 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -3734,8 +3734,10 @@ def process(filename): ''', 'hello world', includes=[path_from_root('tests', 'libcxx', 'include')]); def test_cubescript(self): - Building.COMPILER_TEST_OPTS = [] # remove -g, so we have one test without it by default + if self.emcc_args is not None and '-O2' in self.emcc_args: + self.emcc_args += ['--closure', '1'] # Use closure here for some additional coverage + Building.COMPILER_TEST_OPTS = [] # remove -g, so we have one test without it by default Settings.SAFE_HEAP = 0 # Has some actual loads of unwritten-to places, in the C++ code... # Overflows happen in hash loop |