[pypy-commit] pypy jit-targets: fix test

hakanardo noreply at buildbot.pypy.org
Wed Nov 9 21:48:27 CET 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-targets
Changeset: r49063:8fc9c0d93a1c
Date: 2011-11-09 21:07 +0100
http://bitbucket.org/pypy/pypy/changeset/8fc9c0d93a1c/

Log:	fix test

diff --git a/pypy/jit/metainterp/test/test_virtual.py b/pypy/jit/metainterp/test/test_virtual.py
--- a/pypy/jit/metainterp/test/test_virtual.py
+++ b/pypy/jit/metainterp/test/test_virtual.py
@@ -565,7 +565,10 @@
                 n -= 1
             return node1.value + node2.value
         assert self.meta_interp(f, [40, 3]) == f(40, 3)
-        self.check_trace_count(6)
+        # We get 4 versions of this loop:
+        #   preamble (no virtuals), node1 virtual, node2 virtual, both virtual
+        self.check_target_token_count(4)
+        self.check_resops(new=0, new_with_vtable=0)
 
     def test_single_virtual_forced_in_bridge(self):
         myjitdriver = JitDriver(greens = [], reds = ['n', 's', 'node'])


More information about the pypy-commit mailing list