[pypy-commit] pypy ppc-jit-backend: Skip the float tests properly, for all CPUs not supporting floats.
arigo
noreply at buildbot.pypy.org
Mon Aug 1 18:27:18 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch: ppc-jit-backend
Changeset: r46165:3cd8bf9a25c0
Date: 2011-08-01 18:26 +0200
http://bitbucket.org/pypy/pypy/changeset/3cd8bf9a25c0/
Log: Skip the float tests properly, for all CPUs not supporting floats.
diff --git a/pypy/jit/backend/ppc/ppcgen/test/test_runner.py b/pypy/jit/backend/ppc/ppcgen/test/test_runner.py
--- a/pypy/jit/backend/ppc/ppcgen/test/test_runner.py
+++ b/pypy/jit/backend/ppc/ppcgen/test/test_runner.py
@@ -4,14 +4,8 @@
class FakeStats(object):
pass
-#def skip(self):
-# py.test.skip("not done")
-
class TestPPC(LLtypeBackendTest):
- test_float_operations = skip
-
def setup_method(self, method):
self.cpu = PPC_64_CPU(rtyper=None, stats=FakeStats())
self.cpu.setup_once()
-
diff --git a/pypy/jit/backend/test/runner_test.py b/pypy/jit/backend/test/runner_test.py
--- a/pypy/jit/backend/test/runner_test.py
+++ b/pypy/jit/backend/test/runner_test.py
@@ -392,6 +392,8 @@
def test_float_operations(self):
from pypy.jit.metainterp.test.test_executor import get_float_tests
+ if not self.cpu.supports_floats:
+ py.test.skip("requires floats")
for opnum, boxargs, rettype, retvalue in get_float_tests(self.cpu):
res = self.execute_operation(opnum, boxargs, rettype)
if isinstance(res, BoxFloat):
More information about the pypy-commit
mailing list