[pypy-commit] pypy default: disable tests if compiler does not C++11

wlav pypy.commits at gmail.com
Thu Dec 15 17:08:36 EST 2016


Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: 
Changeset: r89078:3831332c4c41
Date: 2016-12-15 13:59 -0800
http://bitbucket.org/pypy/pypy/changeset/3831332c4c41/

Log:	disable tests if compiler does not C++11

diff --git a/pypy/module/cppyy/test/conftest.py b/pypy/module/cppyy/test/conftest.py
--- a/pypy/module/cppyy/test/conftest.py
+++ b/pypy/module/cppyy/test/conftest.py
@@ -1,7 +1,13 @@
-import py
+import py, sys
 
 @py.test.mark.tryfirst
 def pytest_runtest_setup(item):
+    if 'linux' in sys.platform:
+        # tests require minimally std=c++11
+        cc_info = py.process.cmdexec('gcc -v --help')
+        if not '-std=c++11' in cc_info:
+            py.test.skip('skipping tests because gcc does not support C++11')
+
     if py.path.local.sysfind('genreflex') is None:
         import pypy.module.cppyy.capi.loadable_capi as lcapi
         if 'dummy' in lcapi.reflection_library:


More information about the pypy-commit mailing list