[ORC] Fix unit-test breakage from r280016.
authorLang Hames <lhames@gmail.com>
Mon, 29 Aug 2016 23:10:20 +0000 (23:10 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 29 Aug 2016 23:10:20 +0000 (23:10 +0000)
Void functions returning error now boolean convert to 'false' if they succeed.
Unit tests updated to reflect this.

llvm-svn: 280027

llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp

index 22d3739..af194c9 100644 (file)
@@ -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.