[pypy-svn] r66945 - pypy/branch/asmgcc-mingw32/pypy/translator/c/gcc/test
afa at codespeak.net
afa at codespeak.net
Tue Aug 18 22:25:12 CEST 2009
Author: afa
Date: Tue Aug 18 22:25:11 2009
New Revision: 66945
Modified:
pypy/branch/asmgcc-mingw32/pypy/translator/c/gcc/test/test_asmgcroot.py
Log:
in-progress: enable the tests if the mingw32 compiler is on the PATH
Modified: pypy/branch/asmgcc-mingw32/pypy/translator/c/gcc/test/test_asmgcroot.py
==============================================================================
--- pypy/branch/asmgcc-mingw32/pypy/translator/c/gcc/test/test_asmgcroot.py (original)
+++ pypy/branch/asmgcc-mingw32/pypy/translator/c/gcc/test/test_asmgcroot.py Tue Aug 18 22:25:11 2009
@@ -7,7 +7,9 @@
from pypy import conftest
if sys.platform == 'win32':
- py.test.skip("No asmgcc on Windows")
+ if not ('mingw' in os.popen('gcc --version').read() and
+ 'GNU' in os.popen('make --version').read()):
+ py.test.skip("mingw32 and MSYS are required for asmgcc on Windows")
class AbstractTestAsmGCRoot:
# the asmgcroot gc transformer doesn't generate gc_reload_possibly_moved
@@ -30,6 +32,8 @@
config = get_pypy_config(translating=True)
config.translation.gc = self.gcpolicy
config.translation.gcrootfinder = "asmgcc"
+ if sys.platform == 'win32':
+ config.translation.cc = 'mingw32'
t = TranslationContext(config=config)
self.t = t
a = t.buildannotator()
More information about the Pypy-commit
mailing list