diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-07 15:40:53 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-07 15:40:53 -0800 |
commit | 0b3416a1dcd808fb71043a9f400f3ef2aa636abc (patch) | |
tree | 9a7ff926af193e432f5646afbcfb2c7365b17879 /tests/test_core.py | |
parent | 6fee37fceb9e06a805c8074aa68bf678f406ff5b (diff) | |
parent | e4e8063f6d568277b297f19d51801cd7dda9545c (diff) |
Merge branch 'incoming' into llvm-3.41.8.6
Conflicts:
tests/test_benchmark.py
tools/shared.py
Diffstat (limited to 'tests/test_core.py')
-rw-r--r-- | tests/test_core.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 6442f894..1dc25dce 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -4652,12 +4652,15 @@ return malloc(size); if Settings.QUANTUM_SIZE == 1: return self.skip('TODO: make this work') if os.environ.get('EMCC_FAST_COMPILER') == '1': return self.skip('todo in fastcomp') - self.do_run('', - 'hello lua world!\n17\n1\n2\n3\n4\n7', - args=['-e', '''print("hello lua world!");print(17);for x = 1,4 do print(x) end;print(10-3)'''], - libraries=self.get_library('lua', [os.path.join('src', 'lua'), os.path.join('src', 'liblua.a')], make=['make', 'generic'], configure=None), - includes=[path_from_root('tests', 'lua')], - output_nicerizer=lambda string, err: (string + err).replace('\n\n', '\n').replace('\n\n', '\n')) + for aggro in ([0, 1] if '-O2' in self.emcc_args else [0]): + print aggro + Settings.AGGRESSIVE_VARIABLE_ELIMINATION = aggro + self.do_run('', + 'hello lua world!\n17\n1\n2\n3\n4\n7', + args=['-e', '''print("hello lua world!");print(17);for x = 1,4 do print(x) end;print(10-3)'''], + libraries=self.get_library('lua', [os.path.join('src', 'lua'), os.path.join('src', 'liblua.a')], make=['make', 'generic'], configure=None), + includes=[path_from_root('tests', 'lua')], + output_nicerizer=lambda string, err: (string + err).replace('\n\n', '\n').replace('\n\n', '\n')) def get_freetype(self): Settings.DEAD_FUNCTIONS += ['_inflateEnd', '_inflate', '_inflateReset', '_inflateInit2_'] |