summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-04-06 22:16:58 +0000
committerReid Kleckner <reid@kleckner.net>2015-04-06 22:16:58 +0000
commit4e25cfa167ea1768e6866ae8040b4afc4ac87719 (patch)
treec2ee73cba3f9782faed0bdd4ab8a1960cf054034 /llvm/utils/lit
parent6d0b3704b3fb627971e8c88291b382892082fead (diff)
downloadbcm5719-llvm-4e25cfa167ea1768e6866ae8040b4afc4ac87719.tar.gz
bcm5719-llvm-4e25cfa167ea1768e6866ae8040b4afc4ac87719.zip
[lit] Skip gtest names starting with DISABLED_
The sanitizer test suite uses this idiom to disable a test. Now that we actually check if a test ran after invoking it, we see that zero tests ran, and complain. Instead, ignore tests starting with DISABLED_ completely. Fixes the sanitizer test suite failures on Windows. llvm-svn: 234247
Diffstat (limited to 'llvm/utils/lit')
-rw-r--r--llvm/utils/lit/lit/formats/googletest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/lit/lit/formats/googletest.py b/llvm/utils/lit/lit/formats/googletest.py
index 748dcc7fc67..a1ecced52a8 100644
--- a/llvm/utils/lit/lit/formats/googletest.py
+++ b/llvm/utils/lit/lit/formats/googletest.py
@@ -53,6 +53,10 @@ class GoogleTest(TestFormat):
ln = ln[index*2:]
if ln.endswith('.'):
nested_tests.append(ln)
+ elif ln.startswith('DISABLED_'):
+ # Gtest will internally skip these tests. No need to launch a
+ # child process for it.
+ continue
else:
yield ''.join(nested_tests) + ln
OpenPOWER on IntegriCloud