diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-05-27 11:26:40 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-05-27 11:26:40 -0700 |
commit | d46e9600bcf9416d37a2b4189ca5dd3d0546bf54 (patch) | |
tree | c5a58b20995bf936b7b24d069e06121f29d32b06 /tests/test_core.py | |
parent | 807e419d4a73a4b7b6f60bc9e2bf770924c3442d (diff) |
set MAX_SETJMPS to fastcomp; 1.18.41.18.4
Diffstat (limited to 'tests/test_core.py')
-rw-r--r-- | tests/test_core.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index a4a12236..46d3964c 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -1200,9 +1200,11 @@ class T(RunnerCore): # Short name, to make it more fun to use manually on the co return 0; } ''' - for num in [Settings.MAX_SETJMPS, Settings.MAX_SETJMPS+1]: - print num - self.do_run(src.replace('NUM', str(num)), '0\n' * num if num <= Settings.MAX_SETJMPS or not Settings.ASM_JS else 'build with a higher value for MAX_SETJMPS') + for maxx in [Settings.MAX_SETJMPS/2, Settings.MAX_SETJMPS, 2*Settings.MAX_SETJMPS]: + Settings.MAX_SETJMPS = maxx + for num in [maxx, maxx+1]: + print maxx, num + self.do_run(src.replace('NUM', str(num)), '0\n' * num if num <= Settings.MAX_SETJMPS or not Settings.ASM_JS else 'build with a higher value for MAX_SETJMPS') def test_setjmp_many_2(self): if os.environ.get('EMCC_FAST_COMPILER') == '0': return self.skip('non-fastcomp do not hit the limit.') |