summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2017-04-13 01:03:06 +0000
committerLang Hames <lhames@gmail.com>2017-04-13 01:03:06 +0000
commit22bc7b964864f42f161355452b25ca04c9b2351c (patch)
treed3277f5bdd31133e3846ff3325e9f098000646ab /llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
parentb3f57425512f04f94ea520d07a7141109303e020 (diff)
downloadbcm5719-llvm-22bc7b964864f42f161355452b25ca04c9b2351c.tar.gz
bcm5719-llvm-22bc7b964864f42f161355452b25ca04c9b2351c.zip
[ORC] Use native Errors rather than converted std::error_codes for ORC RPC.
llvm-svn: 300155
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp')
-rw-r--r--llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp b/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
index 3d46ef88f7c..a84610f5eb4 100644
--- a/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
@@ -604,10 +604,10 @@ TEST(DummyRPC, TestAPICalls) {
{
auto Err = DummyCallsAll::negotiate(Client);
- EXPECT_EQ(errorToErrorCode(std::move(Err)).value(),
- static_cast<int>(OrcErrorCode::UnknownRPCFunction))
- << "Expected 'UnknownRPCFunction' error for attempted negotiate of "
+ EXPECT_TRUE(Err.isA<CouldNotNegotiate>())
+ << "Expected CouldNotNegotiate error for attempted negotiate of "
"unsupported function";
+ consumeError(std::move(Err));
}
ServerThread.join();
OpenPOWER on IntegriCloud