summaryrefslogtreecommitdiff
path: root/tests/test_config_cmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_config_cmd.py')
-rw-r--r--tests/test_config_cmd.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_config_cmd.py b/tests/test_config_cmd.py
index 6e566e79..b735fd33 100644
--- a/tests/test_config_cmd.py
+++ b/tests/test_config_cmd.py
@@ -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 */')