From 9975daa26b54fbe72626f2a4a767a3d8c9b9a900 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Sun, 7 Oct 2018 01:08:02 +0000 Subject: [PATCH] [ORC] Consume unhandled errors in unit test. This should fix the failures on the debug buildbots. llvm-svn: 343929 --- unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp b/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp index 47f62a796b8..cd742187ffb 100644 --- a/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp +++ b/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp @@ -167,6 +167,7 @@ TEST_F(CoreAPIsStandardTest, RemoveSymbolsTest) { EXPECT_TRUE(!!Err) << "Expected failure"; EXPECT_TRUE(Err.isA()) << "Expected a SymbolsNotFound error"; + consumeError(std::move(Err)); } { @@ -175,6 +176,7 @@ TEST_F(CoreAPIsStandardTest, RemoveSymbolsTest) { EXPECT_TRUE(!!Err) << "Expected failure"; EXPECT_TRUE(Err.isA()) << "Expected a SymbolsNotFound error"; + consumeError(std::move(Err)); } BazR->resolve({{Baz, BazSym}});