[lit] Fail testing if a googletest executable crashes during test discovery
authorGreg Parker <gparker@apple.com>
Fri, 2 Sep 2016 02:44:07 +0000 (02:44 +0000)
committerGreg Parker <gparker@apple.com>
Fri, 2 Sep 2016 02:44:07 +0000 (02:44 +0000)
commita9bac92890fdad806cc6b84261b2aff4f2a36e86
tree59f125edb43361e3fc3781917665b55011f55e84
parenta39fd4bc532a8d277aa5d19d07a26a97e123ae8c
[lit] Fail testing if a googletest executable crashes during test discovery

googletest formatted tests are discovered by running the test executable.
Previously testing would silently succeed if the test executable crashed
during the discovery process. Now testing fails with "error: unable to
discover google-tests ..." if the test executable exits with a non-zero status.

llvm-svn: 280455
llvm/utils/lit/lit/formats/googletest.py
llvm/utils/lit/lit/util.py