Commits

Armin Rigo committed 2163d5f

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.

Comments (0)

Files changed (2)

pypy/jit/backend/llgraph/runner.py

     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)

pypy/jit/metainterp/test/test_recursive.py

         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
         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