[pypy-svn] r36457 - pypy/dist/pypy/translator/llvm/test

ericvrp at codespeak.net ericvrp at codespeak.net
Thu Jan 11 11:26:03 CET 2007


Author: ericvrp
Date: Thu Jan 11 11:26:02 2007
New Revision: 36457

Modified:
   pypy/dist/pypy/translator/llvm/test/runtest.py
Log:
skip translator/llvm tests when llvm version >= 2.0


Modified: pypy/dist/pypy/translator/llvm/test/runtest.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/test/runtest.py	(original)
+++ pypy/dist/pypy/translator/llvm/test/runtest.py	Thu Jan 11 11:26:02 2007
@@ -4,6 +4,7 @@
 from pypy.translator.llvm.buildllvm import llvm_is_on_path, llvm_version
 optimize_tests = False
 MINIMUM_LLVM_VERSION = 1.7
+MAXIMUM_LLVM_VERSION = 2.0
 
 ext_modules = []
 
@@ -37,6 +38,10 @@
         py.test.skip("llvm version not up-to-date (found "
                      "%.1f, should be >= %.1f)" % (v, MINIMUM_LLVM_VERSION))
         return False
+    elif v >= MAXIMUM_LLVM_VERSION:
+        py.test.skip("llvm version %.1f and higher are not yet supported (found %.1f)" % (
+            MAXIMUM_LLVM_VERSION, v))
+        return False
     return True
 
 def compile_test(function, annotation, isolate=True, **kwds):



More information about the Pypy-commit mailing list