aboutsummaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-10 19:08:28 -0400
committerAlon Zakai <alonzakai@gmail.com>2013-10-10 19:08:28 -0400
commit894db65d7dd8d6bef9595b1e2e49f069b857c5b8 (patch)
tree96a18c11793279ac5e7bf143334ddb2a46142095 /tests/test_core.py
parent1c9032b9b8b4c32dbeca31691447ad574a75f815 (diff)
do not emit postSets for function indexing etc., bake them into the memory initializer
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 576cb8c7..66f9b8e4 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -8616,6 +8616,13 @@ void*:16
assert ' & 255]()' not in original, 'big function table does not exist'
assert ' & 255]()' in final, 'big function table exists'
+ assert 'asm1' in test_modes
+ if self.run_name == 'asm1':
+ generated = open('src.cpp.o.js').read()
+ main = generated[generated.find('function runPostSets'):]
+ main = main[:main.find('\n}')]
+ assert main.count('\n') == 7, 'must not emit too many postSets: %d' % main.count('\n')
+
def test_gcc_unmangler(self):
Settings.NAMED_GLOBALS = 1 # test coverage for this