[pypy-commit] pypy default: I *think* this should skip tests when running from the backend/*/test
arigo
noreply at buildbot.pypy.org
Thu May 2 23:25:46 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r63809:5afd0cd73c54
Date: 2013-05-02 23:24 +0200
http://bitbucket.org/pypy/pypy/changeset/5afd0cd73c54/
Log: I *think* this should skip tests when running from the
backend/*/test directory and the tests require some more support
that what the real cpu provides.
diff --git a/rpython/jit/metainterp/test/support.py b/rpython/jit/metainterp/test/support.py
--- a/rpython/jit/metainterp/test/support.py
+++ b/rpython/jit/metainterp/test/support.py
@@ -70,6 +70,12 @@
cw = codewriter.CodeWriter(cpu, [FakeJitDriverSD()])
cw.debug = True
testself.cw = cw
+ if supports_floats and not cpu.supports_floats:
+ py.test.skip("this test requires supports_floats=True")
+ if supports_longlong and not cpu.supports_longlong:
+ py.test.skip("this test requires supports_longlong=True")
+ if supports_singlefloats and not cpu.supports_singlefloats:
+ py.test.skip("this test requires supports_singlefloats=True")
policy = JitPolicy()
policy.set_supports_floats(supports_floats)
policy.set_supports_longlong(supports_longlong)
More information about the pypy-commit
mailing list