This is an archive of the discontinued LLVM Phabricator instance.

[llvm-mc] Better error handling in ENOENT case + test
ClosedPublic

Authored by davide on Sep 14 2015, 9:29 AM.

Details

Summary

This is a follow up to r247518, addressing Rafael's post-commit reviews.
As a general note, I think we could do a much better job testing for error conditions in tools. I already anticipated in a previous mail, but while implementing this I noticed that the code coverage we have for this is pretty low. I can arbitrarily remove error checking from various tests and the suite still passes.

Diff Detail

Repository
rL LLVM

Event Timeline

davide updated this revision to Diff 34691.Sep 14 2015, 9:29 AM
davide retitled this revision from to [llvm-mc] Better error handling in ENOENT case + test.
davide updated this object.
davide added a reviewer: rafael.
davide added a subscriber: llvm-commits.
rafael edited edge metadata.Sep 14 2015, 10:02 AM
rafael added a subscriber: rafael.

Lgtm! Thanks

This revision was automatically updated to reflect the committed changes.