[pypy-commit] pypy arm-backend-2: skip test_random_effects_on_stacklet_switch if platform is not supported
bivab
noreply at buildbot.pypy.org
Thu Feb 16 20:28:00 CET 2012
Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r52566:cf684bd8d082
Date: 2012-02-16 20:20 +0100
http://bitbucket.org/pypy/pypy/changeset/cf684bd8d082/
Log: skip test_random_effects_on_stacklet_switch if platform is not
supported
diff --git a/pypy/jit/codewriter/test/test_call.py b/pypy/jit/codewriter/test/test_call.py
--- a/pypy/jit/codewriter/test/test_call.py
+++ b/pypy/jit/codewriter/test/test_call.py
@@ -195,7 +195,14 @@
def test_random_effects_on_stacklet_switch():
from pypy.jit.backend.llgraph.runner import LLtypeCPU
- from pypy.rlib._rffi_stacklet import switch, thread_handle, handle
+ from pypy.translator.platform import CompilationError
+ try:
+ from pypy.rlib._rffi_stacklet import switch, thread_handle, handle
+ except CompilationError as e:
+ if "Unsupported platform!" in e.out:
+ py.test.skip("Unsupported platform!")
+ else:
+ raise e
@jit.dont_look_inside
def f():
switch(rffi.cast(thread_handle, 0), rffi.cast(handle, 0))
More information about the pypy-commit
mailing list