[pypy-commit] pypy arm-backend-2: fix to correctly skip runner_test tests for ARM on other platforms

bivab noreply at buildbot.pypy.org
Tue Jul 17 14:43:19 CEST 2012


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r56096:e65ae24df074
Date: 2012-07-17 05:40 -0700
http://bitbucket.org/pypy/pypy/changeset/e65ae24df074/

Log:	fix to correctly skip runner_test tests for ARM on other platforms

diff --git a/pypy/jit/backend/arm/test/test_runner.py b/pypy/jit/backend/arm/test/test_runner.py
--- a/pypy/jit/backend/arm/test/test_runner.py
+++ b/pypy/jit/backend/arm/test/test_runner.py
@@ -1,5 +1,5 @@
 import py
-from pypy.jit.backend.arm.runner import ArmCPU
+from pypy.jit.backend.detect_cpu import getcpuclass
 from pypy.jit.backend.arm.arch import WORD
 from pypy.jit.backend.test.runner_test import LLtypeBackendTest, \
                                                 boxfloat, \
@@ -15,6 +15,8 @@
 from pypy.jit.metainterp.history import JitCellToken, TargetToken
 
 
+CPU = getcpuclass()
+
 class FakeStats(object):
     pass
 
@@ -28,7 +30,7 @@
     bridge_loop_instructions = ['movw', 'movt', 'bx']
 
     def setup_method(self, meth):
-        self.cpu = ArmCPU(rtyper=None, stats=FakeStats())
+        self.cpu = CPU(rtyper=None, stats=FakeStats())
         self.cpu.setup_once()
 
     def test_result_is_spilled(self):


More information about the pypy-commit mailing list