[llvm] r343929 - [ORC] Consume unhandled errors in unit test.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 6 18:08:02 PDT 2018
Author: lhames
Date: Sat Oct 6 18:08:02 2018
New Revision: 343929
URL: http://llvm.org/viewvc/llvm-project?rev=343929&view=rev
Log:
[ORC] Consume unhandled errors in unit test.
This should fix the failures on the debug buildbots.
Modified:
llvm/trunk/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp
Modified: llvm/trunk/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp?rev=343929&r1=343928&r2=343929&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp (original)
+++ llvm/trunk/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp Sat Oct 6 18:08:02 2018
@@ -167,6 +167,7 @@ TEST_F(CoreAPIsStandardTest, RemoveSymbo
EXPECT_TRUE(!!Err) << "Expected failure";
EXPECT_TRUE(Err.isA<SymbolsNotFound>())
<< "Expected a SymbolsNotFound error";
+ consumeError(std::move(Err));
}
{
@@ -175,6 +176,7 @@ TEST_F(CoreAPIsStandardTest, RemoveSymbo
EXPECT_TRUE(!!Err) << "Expected failure";
EXPECT_TRUE(Err.isA<SymbolsCouldNotBeRemoved>())
<< "Expected a SymbolsNotFound error";
+ consumeError(std::move(Err));
}
BazR->resolve({{Baz, BazSym}});
More information about the llvm-commits
mailing list