[pypy-svn] r64856 - pypy/branch/pyjitpl5/pypy/jit/backend/test

arigo at codespeak.net arigo at codespeak.net
Thu Apr 30 15:03:47 CEST 2009


Author: arigo
Date: Thu Apr 30 15:03:47 2009
New Revision: 64856

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/test/support.py
Log:
Fix for test_zrpy_loop.


Modified: pypy/branch/pyjitpl5/pypy/jit/backend/test/support.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/test/support.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/test/support.py	Thu Apr 30 15:03:47 2009
@@ -58,6 +58,9 @@
     def check_loops(self, *args, **kwds):
         pass
 
+    def check_loop_count(self, *args, **kwds):
+        pass
+
     def check_tree_loop_count(self, *args, **kwds):
         pass
 
@@ -87,8 +90,11 @@
         exe_name = cbuilder.compile()
         log('---------- Test starting ----------')
         stdout = cbuilder.cmdexec(" ".join([str(arg) for arg in args]))
-        res = int(stdout)
-        log('---------- Test done (%d) ----------' % (res,))
+        if stdout == 'None\n':
+            res = None
+        else:
+            res = int(stdout)
+        log('---------- Test done (%s) ----------' % (res,))
         return res
 
 class CliCompiledMixin(BaseCompiledMixin):



More information about the Pypy-commit mailing list