daca2: If cppcheck crash, the exitcode is nonzero. Write message in the report when the exitcode is nonzero.
This commit is contained in:
parent
32be4094e7
commit
56a5b0d55f
|
@ -158,6 +158,7 @@ def scanarchive(filepath):
|
|||
'../cppcheck-O2',
|
||||
'-D__GCC__',
|
||||
'--enable=style',
|
||||
'--error-exitcode=0',
|
||||
'--suppressions-list=../suppressions.txt',
|
||||
'.'],
|
||||
stdout=subprocess.PIPE,
|
||||
|
@ -165,7 +166,10 @@ def scanarchive(filepath):
|
|||
comm = p.communicate()
|
||||
|
||||
results = open('results.txt', 'at')
|
||||
results.write(comm[1] + '\n')
|
||||
results.write(comm[1])
|
||||
if p.returncode != 0:
|
||||
results.write('Exit code is not zero! Crash?\n')
|
||||
results.write('\n')
|
||||
results.close()
|
||||
|
||||
FOLDER = None
|
||||
|
|
Loading…
Reference in New Issue