Author: David Schneider <david.schnei...@picle.org>
Branch: arm-backend-2
Changeset: r56511:fde5dc066a03
Date: 2012-07-30 19:41 +0200
http://bitbucket.org/pypy/pypy/changeset/fde5dc066a03/

Log:    Skip test_basic tests that would require longlong support (judging
        by the name of the test)

diff --git a/pypy/jit/backend/arm/test/test_basic.py 
b/pypy/jit/backend/arm/test/test_basic.py
--- a/pypy/jit/backend/arm/test/test_basic.py
+++ b/pypy/jit/backend/arm/test/test_basic.py
@@ -2,6 +2,9 @@
 from pypy.jit.metainterp.test import test_ajit
 from pypy.rlib.jit import JitDriver
 from pypy.jit.backend.arm.test.support import JitARMMixin
+from pypy.jit.backend.detect_cpu import getcpuclass
+
+CPU = getcpuclass()
 
 class TestBasic(JitARMMixin, test_ajit.BaseLLtypeTests):
     # for the individual tests see
@@ -31,5 +34,12 @@
     def test_free_object(self):
         py.test.skip("issue of freeing, probably with ll2ctypes")
 
+
+    if not CPU.supports_longlong:
+        for k in dir(test_ajit.BaseLLtypeTests):
+            if k.find('longlong') < 0:
+                continue
+            locals()[k] = lambda self: py.test.skip('requires longlong 
support')
+
     def test_read_timestamp(self):
         py.test.skip("The JIT on ARM does not support read_timestamp")
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to