Author: Maciej Fijalkowski <[email protected]>
Branch: jitframe-on-heap
Changeset: r60471:e8c5b7052e29
Date: 2013-01-25 19:16 +0200
http://bitbucket.org/pypy/pypy/changeset/e8c5b7052e29/

Log:    Fix those tests. With more dilligence it will be spotted earlier,
        but *before* malloc we don't store in gcmap the result of the malloc
        (it would be confusing)

diff --git a/rpython/jit/backend/x86/test/test_gc_integration.py 
b/rpython/jit/backend/x86/test/test_gc_integration.py
--- a/rpython/jit/backend/x86/test/test_gc_integration.py
+++ b/rpython/jit/backend/x86/test/test_gc_integration.py
@@ -205,7 +205,7 @@
     def test_malloc_slowpath(self):
         def check(frame):
             assert len(frame.jf_gcmap) == 1
-            assert frame.jf_gcmap[0] == (2 | (1<<29) | (1 << 30))
+            assert frame.jf_gcmap[0] == (1<<29) | (1 << 30)
         
         self.cpu = self.getcpu(check)
         ops = '''
@@ -234,7 +234,7 @@
             x = frame.jf_gcmap
             assert len(x) == 1
             assert (bin(x[0]).count('1') ==
-                    '0b1111100000000000000001111111011111'.count('1'))
+                    '0b1111100000000000000001111111011110'.count('1'))
             # all but two registers + some stuff on stack
         
         self.cpu = self.getcpu(check)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to