diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-05-28 10:05:08 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-05-28 10:05:08 -0700 |
commit | a2aef0f9212b0bc147aeb850c398b52ae98eaa3e (patch) | |
tree | cb613e103fda3ed5b7f4c547f3bd9dcdfae24e89 | |
parent | e792dc4e6aea8bd4b95eada40f85e8c0598dfc3d (diff) |
fix asm2.test_memorygrowth
-rw-r--r-- | tests/test_core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 7e15f1b8..1d04ebcb 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -2068,10 +2068,10 @@ def process(filename): if self.emcc_args and '-O2' in self.emcc_args: # Make sure ALLOW_MEMORY_GROWTH generates different code (should be less optimized) - code_start = 'var TOTAL_MEMORY = ' + code_start = 'var TOTAL_MEMORY' fail = fail[fail.find(code_start):] win = win[win.find(code_start):] - assert len(fail) < len(win), 'failing code - without memory growth on - is more optimized, and smaller' + assert len(fail) < len(win), 'failing code - without memory growth on - is more optimized, and smaller' + str([len(fail), len(win)]) def test_ssr(self): # struct self-ref src = ''' |