daca2: changed checking of test code again. people might want to run cppcheck on their testcode to ensure there is not UB. we skip gcc testsuite because the torture tests are not meant to be valid.

This commit is contained in:
Daniel Marjamäki 2016-02-05 08:39:29 +01:00
parent 1d9537b259
commit b45c2851b0
1 changed files with 2 additions and 2 deletions

View File

@ -116,8 +116,8 @@ def removeLargeFiles(path):
removeLargeFiles(g + '/') removeLargeFiles(g + '/')
elif os.path.isfile(g) and g[-4:] != '.txt': elif os.path.isfile(g) and g[-4:] != '.txt':
statinfo = os.stat(g) statinfo = os.stat(g)
# Remove test files, the code is not meant to be proper/valid # Remove gcc torture tests, that is not meant to be valid code
if path.find('/test/') > 0 or path.find('/testsuite/') > 0: if path.find('/gcc/testsuite/') > 0:
os.remove(g) os.remove(g)
if path.find('/clang/INPUTS/') > 0 or statinfo.st_size > 1000000: if path.find('/clang/INPUTS/') > 0 or statinfo.st_size > 1000000:
os.remove(g) os.remove(g)