command: clang passed only at execution

This commit is contained in:
Laszlo Nagy
2014-12-26 21:48:35 +01:00
parent 8f3d90474c
commit e715ac2053
5 changed files with 17 additions and 17 deletions

View File

@@ -20,9 +20,10 @@ def run_analyzer(content, opts):
opts.update({
'directory': os.getcwd(),
'clang': 'clang',
'file': filename,
'language': 'c++',
'analyze': ['clang', '--analyze', '-x', 'c++', filename],
'analyze': ['--analyze', '-x', 'c++', filename],
'output': ['-o', tmpdir]})
spy = fixtures.Spy()
result = sut.run_analyzer(opts, spy.call)
@@ -93,8 +94,9 @@ class ReportFailureTest(fixtures.TestCase):
error_msg = 'this is my error output'
# execute test
opts = {'directory': os.getcwd(),
'clang': 'clang',
'file': filename,
'report': ['clang', '-fsyntax-only', '-E', filename],
'report': ['-fsyntax-only', '-E', filename],
'language': 'c',
'out_dir': tmpdir,
'error_type': 'other_error',