[llvm] r280027 - [ORC] Fix unit-test breakage from r280016.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 29 16:10:20 PDT 2016


Author: lhames
Date: Mon Aug 29 18:10:20 2016
New Revision: 280027

URL: http://llvm.org/viewvc/llvm-project?rev=280027&view=rev
Log:
[ORC] Fix unit-test breakage from r280016.

Void functions returning error now boolean convert to 'false' if they succeed.
Unit tests updated to reflect this.

Modified:
    llvm/trunk/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp

Modified: llvm/trunk/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp?rev=280027&r1=280026&r2=280027&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp (original)
+++ llvm/trunk/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp Mon Aug 29 18:10:20 2016
@@ -103,7 +103,7 @@ TEST_F(DummyRPC, TestAsyncVoidBool) {
 
   // Verify that the function returned ok.
   auto Err = ResOrErr->first.get();
-  EXPECT_TRUE(!!Err) << "Remote void function failed to execute.";
+  EXPECT_FALSE(!!Err) << "Remote void function failed to execute.";
 }
 
 TEST_F(DummyRPC, TestAsyncIntInt) {
@@ -180,7 +180,7 @@ TEST_F(DummyRPC, TestSerialization) {
 
   // Verify that the function returned ok.
   auto Err = ResOrErr->first.get();
-  EXPECT_TRUE(!!Err) << "Remote void function failed to execute.";
+  EXPECT_FALSE(!!Err) << "Remote void function failed to execute.";
 }
 
 // Test the synchronous call API.




More information about the llvm-commits mailing list