donate-cpu: better detection of crashes

This commit is contained in:
Daniel Marjamäki 2018-12-01 13:25:48 +01:00
parent 9289c9a283
commit ffef44af4c
1 changed files with 4 additions and 0 deletions

View File

@ -205,6 +205,10 @@ def scanPackage(workPath, cppcheck, jobs):
# Crash!
print('Crash!')
return -1, '', -1
if stderr.find('Internal error: Child process crashed with signal 11 [cppcheckError]') > 0:
# Crash!
print('Crash!')
return -1, '', -1
elapsedTime = stopTime - startTime
count = 0
for line in stderr.split('\n'):