Author: Maciej Fijalkowski <[email protected]>
Branch: jitframe-on-heap
Changeset: r60156:d79c5eaa6c48
Date: 2013-01-17 23:25 +0200
http://bitbucket.org/pypy/pypy/changeset/d79c5eaa6c48/

Log:    finish the test

diff --git a/pypy/jit/backend/x86/test/test_gc_integration.py 
b/pypy/jit/backend/x86/test/test_gc_integration.py
--- a/pypy/jit/backend/x86/test/test_gc_integration.py
+++ b/pypy/jit/backend/x86/test/test_gc_integration.py
@@ -64,11 +64,14 @@
         # this is a fairly CPU specific check
         all = len(gpr_reg_mgr_cls.all_regs)
         assert frame.jf_gcpattern == (1 << (all - 1)) | (1 << (all - 2))
-        # the gcmap should contain three things, p0, p1 and p3
-        assert len(frame.jf_gcmap) == 3
-        for i in range(3):
+        # the gcmap should contain three things, p0, p1 and p3, but
+        # p3 stays in a register and is only represented in gcpattern,
+        # while p0 is in both
+        assert len(frame.jf_gcmap) == 2
+        for i in range(2):
             assert frame.jf_gcmap[i] == frame.jf_frame_info.jfi_gcmap[i]
-        xxx
+        assert frame.jf_gcmap[0] == 1
+        assert frame.jf_gcmap[1] == 3
 
     def test_rewrite_constptr(self):
         ops = '''
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to