[lit] Fix compatibility with upstream gtest
authorLukáš Zaoral <lzaoral@redhat.com>
Wed, 19 Jan 2022 16:01:18 +0000 (08:01 -0800)
committerPaul Robinson <paul.robinson@sony.com>
Wed, 19 Jan 2022 16:02:28 +0000 (08:02 -0800)
commit14a793ab0589de48511455038f63f28ff2506d48
tree88fed750a4dadded3e66d40b256ce4e91c48c768
parent8baf4ba89085b766b240c9178f5edc1901d8e2c4
[lit] Fix compatibility with upstream gtest

Upstream gtest now prints 'Running main() from FILE' instead of
plain 'Running main() from gtest_main.cc'. Thus, all such tests
ended-up being mistakenly marked as UNRESOLVED.

Patch by @lzaoral

Differential Revision: https://reviews.llvm.org/D100043
llvm/utils/lit/lit/formats/googletest.py
llvm/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py