mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-11191: skip unsupported test_distutils case for AIX with xlc (GH-8709)
Command line options for the xlc compiler behave differently from gcc and clang, so skip this test case for now when xlc is the compiler. Patch by aixtools (Michael Felt)
This commit is contained in:
parent
e2926b7248
commit
ed57e13df6
3 changed files with 8 additions and 1 deletions
|
@ -39,11 +39,17 @@ class ConfigTestCase(support.LoggingSilencer,
|
|||
|
||||
@unittest.skipIf(sys.platform == 'win32', "can't test on Windows")
|
||||
def test_search_cpp(self):
|
||||
import shutil
|
||||
cmd = missing_compiler_executable(['preprocessor'])
|
||||
if cmd is not None:
|
||||
self.skipTest('The %r command is not found' % cmd)
|
||||
pkg_dir, dist = self.create_dist()
|
||||
cmd = config(dist)
|
||||
cmd._check_compiler()
|
||||
compiler = cmd.compiler
|
||||
is_xlc = shutil.which(compiler.preprocessor[0]).startswith("/usr/vac")
|
||||
if is_xlc:
|
||||
self.skipTest('xlc: The -E option overrides the -P, -o, and -qsyntaxonly options')
|
||||
|
||||
# simple pattern searches
|
||||
match = cmd.search_cpp(pattern='xxx', body='/* xxx */')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue