Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lldb/unittests/Host/MainLoopTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ TEST_F(MainLoopTest, NoSpuriousPipeReads) {
// pipe is empty, and we should not be called anymore.
char X;
size_t len = sizeof(X);
EXPECT_THAT_EXPECTED(r->Read(&X, len).ToError(), llvm::HasValue(1));
ASSERT_THAT_ERROR(r->Read(&X, len).ToError(), llvm::Succeeded());
EXPECT_EQ(len, sizeof(X));
EXPECT_EQ(X, 'X');
Comment on lines +127 to +129
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad. I was looking at the interface for the pipe class. We really ought to rectify the two :/

}
++callback_count;
},
Expand Down Expand Up @@ -159,6 +161,7 @@ TEST_F(MainLoopTest, NoSpuriousSocketReads) {
EXPECT_THAT_ERROR(socketpair[1]->Read(&X, len).ToError(),
llvm::Succeeded());
EXPECT_EQ(len, sizeof(X));
EXPECT_EQ(X, 'X');
}
++callback_count;
},
Expand Down
Loading