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.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM.
There might be clients of the capture() API which might aren't expecting it to throw on error, and will need to be updated, but I agree this makes more sense.
Comment Actions
The only other use of capture() in lit itself is capturing sysctl -n hw.ncpu. I didn't look more broadly.
Comment Actions
Committed in rL280455. Please specify "Differential revision: <URL>" in commit message.