aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2011-02-11 18:37:04 -0800
committerAlon Zakai <azakai@mozilla.com>2011-02-11 18:37:04 -0800
commit8162e103411255e9514d8f4818d0715d8af255f3 (patch)
tree0d2bde9984413acf37335e904b0f5dbfed01b0fd /tests/runner.py
parentf509bad6cfe59e1437634639fca039d28fcc893a (diff)
add parens in mathops
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py
index a9de9b51..828ff460 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1012,7 +1012,6 @@ if 'benchmark' not in sys.argv:
self.do_test(src, '*4096,4096,8192,69632*')
def test_pystruct(self):
- if COMPILER != LLVM_GCC: return # TODO: Clang here
src = '''
#include <stdio.h>
@@ -1070,10 +1069,10 @@ if 'benchmark' not in sys.argv:
PyGC_Head *list = GEN_HEAD(i);
printf("%d:%d,%d\\n", i, (int)list == (int)(list->gc.gc_prev), (int)list ==(int)(list->gc.gc_next));
}
- printf("*%d*\\n", int(GEN_HEAD(2)) - int(GEN_HEAD(1)));
+ printf("*%d,%d,%d*\\n", sizeof(PyGC_Head), sizeof(gc_generation), int(GEN_HEAD(2)) - int(GEN_HEAD(1)));
}
'''
- self.do_test(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*20*')
+ self.do_test(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*')
def test_ptrtoint(self):
src = '''