[pypy-svn] r76072 - pypy/trunk/pypy/jit/metainterp/test

arigo at codespeak.net arigo at codespeak.net
Fri Jul 9 15:00:39 CEST 2010


Author: arigo
Date: Fri Jul  9 15:00:38 2010
New Revision: 76072

Modified:
   pypy/trunk/pypy/jit/metainterp/test/test_recursive.py
Log:
Fix the test.


Modified: pypy/trunk/pypy/jit/metainterp/test/test_recursive.py
==============================================================================
--- pypy/trunk/pypy/jit/metainterp/test/test_recursive.py	(original)
+++ pypy/trunk/pypy/jit/metainterp/test/test_recursive.py	Fri Jul  9 15:00:38 2010
@@ -537,9 +537,9 @@
                 op = code[pc]
                 if op == "+":
                     n += 7
-                if op == "-":
+                elif op == "-":
                     n -= 1
-                if op == "c":
+                elif op == "c":
                     n = f('---', n)
                 elif op == "l":
                     if n > 0:
@@ -556,7 +556,7 @@
             result = 0
             for i in range(m):
                 result += f('+-cl--', i)
-        g(50) # <--- this test is broken
+        g(50)
         self.meta_interp(g, [50], backendopt=True)
         self.check_tree_loop_count(3)
         self.check_history(int_add=1)



More information about the Pypy-commit mailing list