[pypy-commit] pypy default: re-enabled win32 tests to make amaury happy. win64 still disabled

ctismer noreply at buildbot.pypy.org
Tue Mar 27 05:09:05 CEST 2012


Author: Christian Tismer <tismer at stackless.com>
Branch: 
Changeset: r54020:a1cf137dd2bd
Date: 2012-03-27 04:28 +0200
http://bitbucket.org/pypy/pypy/changeset/a1cf137dd2bd/

Log:	re-enabled win32 tests to make amaury happy. win64 still disabled

diff --git a/pypy/translator/c/gcc/test/test_asmgcroot.py b/pypy/translator/c/gcc/test/test_asmgcroot.py
--- a/pypy/translator/c/gcc/test/test_asmgcroot.py
+++ b/pypy/translator/c/gcc/test/test_asmgcroot.py
@@ -7,10 +7,17 @@
 from pypy import conftest
 from pypy.translator.tool.cbuild import ExternalCompilationInfo
 from pypy.translator.platform import platform as compiler
+from pypy.rlib.rarithmetic import is_emulated_long
 from pypy.rpython.lltypesystem import lltype, rffi
 from pypy.rlib.entrypoint import entrypoint, secondary_entrypoints
 from pypy.rpython.lltypesystem.lloperation import llop
 
+_MSVC = compiler.name == "msvc"
+_MINGW = compiler.name == "mingw32"
+_WIN32 = _MSVC or _MINGW
+_WIN64 = _WIN32 and is_emulated_long
+# XXX get rid of 'is_emulated_long' and have a real config here.
+
 class AbstractTestAsmGCRoot:
     # the asmgcroot gc transformer doesn't generate gc_reload_possibly_moved
     # instructions:
@@ -18,8 +25,8 @@
 
     @classmethod
     def make_config(cls):
-        if compiler.name == "msvc":
-            py.test.skip("all asmgcroot tests disabled for MSVC")
+        if _MSVC and _WIN64:
+            py.test.skip("all asmgcroot tests disabled for MSVC X64")
         from pypy.config.pypyoption import get_pypy_config
         config = get_pypy_config(translating=True)
         config.translation.gc = cls.gcpolicy


More information about the pypy-commit mailing list