mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
[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
This commit is contained in:
parent
cf0d94f462
commit
93d8e23940
@ -53,6 +53,10 @@ class GoogleTest(TestFormat):
|
|||||||
ln = ln[index*2:]
|
ln = ln[index*2:]
|
||||||
if ln.endswith('.'):
|
if ln.endswith('.'):
|
||||||
nested_tests.append(ln)
|
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:
|
else:
|
||||||
yield ''.join(nested_tests) + ln
|
yield ''.join(nested_tests) + ln
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user