This is an archive of the discontinued LLVM Phabricator instance.

llgs-tests: Replace the "log+return false" pattern with llvm::Error
ClosedPublic

Authored by labath on Nov 8 2017, 4:08 AM.

Details

Summary

These tests used to log the error message and return plain bool mainly
because at the time they we written, we did not have a nice way to
assert on llvm::Error values. That is no longer true, so replace this
pattern with a more idiomatic approach.

As a part of this patch, I also move the formatting of
GDBRemoteCommunication::PacketResult values out of the test code, as
that can be useful elsewhere.

Diff Detail

Repository
rL LLVM

Event Timeline

labath created this revision.Nov 8 2017, 4:08 AM
eugene accepted this revision.Nov 8 2017, 11:25 AM
This revision is now accepted and ready to land.Nov 8 2017, 11:25 AM
This revision was automatically updated to reflect the committed changes.