From b45c2851b06e16dccaeccae14f3daaaabd335a62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 5 Feb 2016 08:39:29 +0100 Subject: [PATCH] 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. --- tools/daca2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/daca2.py b/tools/daca2.py index 64eff72a8..3ed7f932c 100644 --- a/tools/daca2.py +++ b/tools/daca2.py @@ -116,8 +116,8 @@ def removeLargeFiles(path): removeLargeFiles(g + '/') elif os.path.isfile(g) and g[-4:] != '.txt': statinfo = os.stat(g) - # Remove test files, the code is not meant to be proper/valid - if path.find('/test/') > 0 or path.find('/testsuite/') > 0: + # Remove gcc torture tests, that is not meant to be valid code + if path.find('/gcc/testsuite/') > 0: os.remove(g) if path.find('/clang/INPUTS/') > 0 or statinfo.st_size > 1000000: os.remove(g)