lit is usually forgiving when it comes to files that aren't tests, but
happen to match the test suffix being searched for. For example, even if I
specify a suffix of ".py", lit will not fail the test suite if it finds
a Python file that doesn't contain any lit commands.
lit's googletest format, on the other hand, is not as forgiving. If a
normal, non-executable file matching the test suffix is found, lit
attempts to execute it:
NotATest --gtest_list_tests
This fails, and causes lit to fail the test suite.
To mirror the lit's lenient behavior with other test formats, instead
of failing the test, have lit simply emit a warning instead. Add a test
that verifies the new behavior.