This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Coverage improvement for std::future_error::what().
Needs ReviewPublic

Authored by amakc11 on Jan 27 2020, 8:13 AM.

Details

Reviewers
EricWF
Summary

The call of this method is inside the LIBCPP_ASSERT macro that removes the call when running tests against other libraries. This patch moves the call out of the macro to achieve correct coverage. Also, the path adds the following library-independent checks:

  1. each string returned by this method is not empty;
  2. all returned strings are distinct.

Diff Detail

Event Timeline

amakc11 created this revision.Jan 27 2020, 8:13 AM
Herald added a project: Restricted Project. · View Herald Transcript