[pypy-commit] pypy remove-globals-in-jit: Skip these two tests when run from backend/x86/test. The issue is

arigo noreply at buildbot.pypy.org
Sun Dec 2 19:38:27 CET 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: remove-globals-in-jit
Changeset: r59222:2163d5fc96d7
Date: 2012-12-02 10:38 -0800
http://bitbucket.org/pypy/pypy/changeset/2163d5fc96d7/

Log:	Skip these two tests when run from backend/x86/test. The issue is
	obscure and has to do with hide()/show() not working with ll2ctypes.

diff --git a/pypy/jit/backend/llgraph/runner.py b/pypy/jit/backend/llgraph/runner.py
--- a/pypy/jit/backend/llgraph/runner.py
+++ b/pypy/jit/backend/llgraph/runner.py
@@ -164,6 +164,7 @@
     supports_longlong = r_uint is not r_ulonglong
     supports_singlefloats = True
     translate_support_code = False
+    is_llgraph = True
 
     def __init__(self, rtyper, stats=None, *ignored_args, **ignored_kwds):
         model.AbstractCPU.__init__(self)
diff --git a/pypy/jit/metainterp/test/test_recursive.py b/pypy/jit/metainterp/test/test_recursive.py
--- a/pypy/jit/metainterp/test/test_recursive.py
+++ b/pypy/jit/metainterp/test/test_recursive.py
@@ -849,7 +849,13 @@
         res = self.meta_interp(main, [0], inline=True)
         assert res == main(0)
 
+    def _skip_if_untranslated_on_a_real_backend(self):
+        if not hasattr(self.CPUClass, 'is_llgraph'):
+            py.test.skip("xxx only works on the llgraph backend, or "
+                         "fully translated")
+
     def test_directly_call_assembler_virtualizable_force1(self):
+        self._skip_if_untranslated_on_a_real_backend()
         class Thing(object):
             def __init__(self, val):
                 self.val = val
@@ -944,6 +950,7 @@
         assert res == main(0, 10, 1)
 
     def test_directly_call_assembler_virtualizable_force_blackhole(self):
+        self._skip_if_untranslated_on_a_real_backend()
         class Thing(object):
             def __init__(self, val):
                 self.val = val


More information about the pypy-commit mailing list