1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

[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.

llvm-svn: 280027
This commit is contained in:
Lang Hames 2016-08-29 23:10:20 +00:00
parent 90d6b31c2b
commit 9cf0aeac14

View 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.