Skip to content

Commit b45c285

Browse files
committed
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.
1 parent 1d9537b commit b45c285

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/daca2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ def removeLargeFiles(path):
116116
removeLargeFiles(g + '/')
117117
elif os.path.isfile(g) and g[-4:] != '.txt':
118118
statinfo = os.stat(g)
119-
# Remove test files, the code is not meant to be proper/valid
120-
if path.find('/test/') > 0 or path.find('/testsuite/') > 0:
119+
# Remove gcc torture tests, that is not meant to be valid code
120+
if path.find('/gcc/testsuite/') > 0:
121121
os.remove(g)
122122
if path.find('/clang/INPUTS/') > 0 or statinfo.st_size > 1000000:
123123
os.remove(g)

0 commit comments

Comments
 (0)