Skip to content

Commit cd0e599

Browse files
committed
[ORC] Consume unhandled errors in unit test.
This should fix the failures on the debug buildbots. llvm-svn: 343929
1 parent 535448e commit cd0e599

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ TEST_F(CoreAPIsStandardTest, RemoveSymbolsTest) {
167167
EXPECT_TRUE(!!Err) << "Expected failure";
168168
EXPECT_TRUE(Err.isA<SymbolsNotFound>())
169169
<< "Expected a SymbolsNotFound error";
170+
consumeError(std::move(Err));
170171
}
171172

172173
{
@@ -175,6 +176,7 @@ TEST_F(CoreAPIsStandardTest, RemoveSymbolsTest) {
175176
EXPECT_TRUE(!!Err) << "Expected failure";
176177
EXPECT_TRUE(Err.isA<SymbolsCouldNotBeRemoved>())
177178
<< "Expected a SymbolsNotFound error";
179+
consumeError(std::move(Err));
178180
}
179181

180182
BazR->resolve({{Baz, BazSym}});

0 commit comments

Comments
 (0)