Author: Armin Rigo <[email protected]>
Branch: stmgc-c8
Changeset: r76212:be7d50706ee0
Date: 2015-03-02 17:30 +0100
http://bitbucket.org/pypy/pypy/changeset/be7d50706ee0/
Log: fix test
diff --git a/rpython/jit/backend/llsupport/test/test_gc_integration.py
b/rpython/jit/backend/llsupport/test/test_gc_integration.py
--- a/rpython/jit/backend/llsupport/test/test_gc_integration.py
+++ b/rpython/jit/backend/llsupport/test/test_gc_integration.py
@@ -315,13 +315,11 @@
def test_malloc_slowpath(self):
def check(frame):
- # xxx for now we always have GCMAP_STM_LOCATION, but it should
- # be added only if we really have stm in the first place
- expected_size = 1 + gcmap.GCMAP_STM_LOCATION
+ expected_size = 1
idx = 0
if self.cpu.backend_name.startswith('arm'):
# jitframe fixed part is larger here
- expected_size = 2 + gcmap.GCMAP_STM_LOCATION
+ expected_size = 2
idx = 1
assert len(frame.jf_gcmap) == expected_size
if self.cpu.IS_64_BIT:
@@ -357,11 +355,11 @@
def check(frame):
x = frame.jf_gcmap
if self.cpu.IS_64_BIT:
- assert len(x) == 1 + gcmap.GCMAP_STM_LOCATION
+ assert len(x) == 1
assert (bin(x[0]).count('1') ==
'0b1111100000000000000001111111011110'.count('1'))
else:
- assert len(x) == 2 + gcmap.GCMAP_STM_LOCATION
+ assert len(x) == 2
s = bin(x[0]).count('1') + bin(x[1]).count('1')
assert s == 16
# all but two registers + some stuff on stack
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit