Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 908f420

Browse files
committed
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280027 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 1169682 commit 908f420

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ TEST_F(DummyRPC, TestAsyncVoidBool) {
103103

104104
// Verify that the function returned ok.
105105
auto Err = ResOrErr->first.get();
106-
EXPECT_TRUE(!!Err) << "Remote void function failed to execute.";
106+
EXPECT_FALSE(!!Err) << "Remote void function failed to execute.";
107107
}
108108

109109
TEST_F(DummyRPC, TestAsyncIntInt) {
@@ -180,7 +180,7 @@ TEST_F(DummyRPC, TestSerialization) {
180180

181181
// Verify that the function returned ok.
182182
auto Err = ResOrErr->first.get();
183-
EXPECT_TRUE(!!Err) << "Remote void function failed to execute.";
183+
EXPECT_FALSE(!!Err) << "Remote void function failed to execute.";
184184
}
185185

186186
// Test the synchronous call API.

0 commit comments

Comments
 (0)