diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-04-06 22:16:58 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-04-06 22:16:58 +0000 |
commit | 93d8e23940924ca078e9b85e25e0e6ad96a8d8f7 (patch) | |
tree | 1dbabcc04d2d0b7a4138fec5c745404cc4d1008a /utils | |
parent | cf0d94f4624603fbd817960fab3547b40ff7562b (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lit/lit/formats/googletest.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/lit/lit/formats/googletest.py b/utils/lit/lit/formats/googletest.py index 748dcc7fc6..a1ecced52a 100644 --- a/utils/lit/lit/formats/googletest.py +++ b/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 |