Skip to content

Commit 40f6790

Browse files
fixup! Add negative test
1 parent 2c6aec5 commit 40f6790

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,3 +650,14 @@ TEST_F(GDBRemoteCommunicationClientTest, MultiMemReadSupported) {
650650
ASSERT_TRUE(client.GetMultiMemReadSupported());
651651
async_result.wait();
652652
}
653+
654+
TEST_F(GDBRemoteCommunicationClientTest, MultiMemReadNotSupported) {
655+
std::future<bool> async_result = std::async(std::launch::async, [&] {
656+
StringExtractorGDBRemote qSupported_packet_request;
657+
server.GetPacket(qSupported_packet_request);
658+
server.SendPacket(";");
659+
return true;
660+
});
661+
ASSERT_FALSE(client.GetMultiMemReadSupported());
662+
async_result.wait();
663+
}

0 commit comments

Comments
 (0)