[pypy-commit] pypy improve-vmprof-testing: make the first assert about metainterp

fijal pypy.commits at gmail.com
Fri Aug 5 13:25:10 EDT 2016


Author: fijal
Branch: improve-vmprof-testing
Changeset: r86040:99215a4747c0
Date: 2016-08-05 19:24 +0200
http://bitbucket.org/pypy/pypy/changeset/99215a4747c0/

Log:	make the first assert about metainterp

diff --git a/rpython/jit/backend/test/test_rvmprof.py b/rpython/jit/backend/test/test_rvmprof.py
--- a/rpython/jit/backend/test/test_rvmprof.py
+++ b/rpython/jit/backend/test/test_rvmprof.py
@@ -45,7 +45,7 @@
             while i < n:
                 driver.jit_merge_point(code=code)
                 if code.name == "main":
-                    f(codes, codes[1], 5)
+                    f(codes, codes[1], 1)
                 else:
                     llfn()
                 i += 1
@@ -65,7 +65,7 @@
         null = lltype.nullptr(cintf.VMPROFSTACK)
         cintf.vmprof_tl_stack.setraw(null)
         self.meta_interp(main, [10], policy=JitPolicy(hooks))
-        print visited
+        assert visited[:3] == [[(1, 12), (1, 8)], [(1, 12), (1, 8)], [(1, 12), (1, 8)]]
         #v = set(visited)
         #assert 0 in v
         #v.remove(0)


More information about the pypy-commit mailing list