This is an archive of the discontinued LLVM Phabricator instance.

[lit][googletest] Handle upstream gtest output
ClosedPublic

Authored by modocache on Mar 30 2016, 9:09 AM.

Details

Summary

Upstream googletest prints "Running main() from gtest_main.cc" to stdout prior
to running tests. LLVM removed that print statement in r61540. If a user were
to use lit to run tests that use upstream googletest, however, lit
reports "Running main()" as an invalid test name.

To avoid such a failure, add an extra conditional to formats/googletest.py.
Also add tests to demonstrate the modified behavior.

Diff Detail

Event Timeline

modocache updated this revision to Diff 52074.Mar 30 2016, 9:09 AM
modocache retitled this revision from to [lit][googletest] Handle upstream gtest output.
modocache updated this object.
modocache added reviewers: ddunbar, abdulras.
modocache added a subscriber: kastiglione.
ddunbar edited edge metadata.Mar 31 2016, 8:45 AM
ddunbar added a subscriber: ddunbar.

LGTM, thanks for the fix and the new test coverage!

Will apply shortly...

  • Daniel
ddunbar accepted this revision.Mar 31 2016, 8:45 AM
ddunbar edited edge metadata.
This revision is now accepted and ready to land.Mar 31 2016, 8:45 AM
ddunbar closed this revision.Mar 31 2016, 11:28 AM

Applied in r265034