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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/utils/lit/lit/formats/googletest.py | ||
---|---|---|
62 | This should probably be a regex that can handle both the old and new output. We can't assume the version of GTest being used because lit is used outside of LLVM in other places. Given that the cost of support of both is relatively low here, we should probably just do it. | |
llvm/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py | ||
10–11 | I'd prefer if you used f-strings here rather than string interpolation operator, i.e. print(f"""\ Running main() from {os.getcwd()}/gtest_main.cc ... |
Comment Actions
Thanks a lot @delcypher! Can you (or anyone else with commit rights) commit it to trunk for me?
This should probably be a regex that can handle both the old and new output. We can't assume the version of GTest being used because lit is used outside of LLVM in other places. Given that the cost of support of both is relatively low here, we should probably just do it.