Go to file
David Blaikie 94b98b2caf ProfData: Fix some unchecked Errors in unit tests
The 'NoError' function was meant to be used as the input to
ASSERT/EXPECT_TRUE, but it is easy to forget this (it could be annotated
with nodiscard to help this) so many sites that look like they're checked
are not (& silently discard the failure). Only one site actually has an
Error sneaking out this way and I've replaced that one with a
FIXME+consumeError.

The rest of the code has been modified to use the EXPECT_THAT_ERROR
macros Zach introduced a while back. Between the options available this
seems OK/good/something to standardize on - though it's difficult to
build a matcher that could handle checking for a specific llvm::Error
result, so those remain using the custom ErrorEquals (& the nodiscard
added to ensure it is not misused as it was previous to this patch). It
could still be generalized a bit further (even not as far as a matcher,
but at least support multiple kinds of Error, etc) & added to the
general Error utility header.

llvm-svn: 307440
2017-07-07 21:02:59 +00:00
clang Enable the new PM + SamlePGO + ThinLTO testing. 2017-07-07 20:53:17 +00:00
clang-tools-extra
compiler-rt
debuginfo-tests
libclc
libcxx
libcxxabi
libunwind
lld [PDB] More changes to bring lld PDBs to parity with MSVC. 2017-07-07 20:25:39 +00:00
lldb
llgo
llvm ProfData: Fix some unchecked Errors in unit tests 2017-07-07 21:02:59 +00:00
openmp
parallel-libs
polly