aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-21 10:57:24 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-29 13:01:58 -0700
commite3c27642a8431328dc2a823ae1ee96e80a9baae7 (patch)
tree95bdf175d4a8ecd994e989c5e639b81ada856e7c /tests
parentc2816fad68242e8e85a731d32527115673fb9422 (diff)
update test_pystruct
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 92395e25..e705dada 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -3650,7 +3650,12 @@ Exiting setjmp function, level: 0, prev_jmp: -1
# Compressed memory. Note that sizeof() does give the fat sizes, however!
self.do_run(src, '*0,0,0,1,2,3,4,5*\n*1,0,0*\n*0*\n0:1,1\n1:1,1\n2:1,1\n*12,20,5*')
else:
- self.do_run(src, '*0,0,0,4,8,12,16,20*\n*1,0,0*\n*0*\n0:1,1\n1:1,1\n2:1,1\n*12,20,20*')
+ if 'le32-unknown-nacl' in COMPILER_OPTS:
+ self.do_run(src, '*0,0,0,4,8,16,20,24*\n*1,0,0*\n*0*\n0:1,1\n1:1,1\n2:1,1\n*16,24,24*')
+ elif 'i386-pc-linux-gnu' in COMPILER_OPTS:
+ self.do_run(src, '*0,0,0,4,8,12,16,20*\n*1,0,0*\n*0*\n0:1,1\n1:1,1\n2:1,1\n*12,20,20*')
+ else:
+ raise Exception('unknown arch')
def test_ptrtoint(self):
if self.emcc_args is None: return self.skip('requires emcc')