forked from OSchip/llvm-project
[GDBRemoteCommunicationClient] Increase timeout for qfProcessInfo packet.
Summary: The test in TestPlatformCommand which runs "platform process list" has been timing out for Android when running running dosep.py with LLDB_TEST_THREADS=8. This patch increases the packet timeout to a large value of 1min to accommodate the long time required for a response for the qfProcessInfo packet on Android. Test Plan: LLDB_TEST_THREADS=8 ./dosep.py on Android. Reviewers: chaoren Reviewed By: chaoren Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D9866 llvm-svn: 237752
This commit is contained in:
parent
ccbcf7cfd3
commit
8fd94c9e68
|
@ -2694,6 +2694,9 @@ GDBRemoteCommunicationClient::FindProcesses (const ProcessInstanceInfoMatch &mat
|
|||
}
|
||||
}
|
||||
StringExtractorGDBRemote response;
|
||||
// Increase timeout as the first qfProcessInfo packet takes a long time
|
||||
// on Android. The value of 1min was arrived at empirically.
|
||||
GDBRemoteCommunication::ScopedTimeout timeout (*this, 60);
|
||||
if (SendPacketAndWaitForResponse (packet.GetData(), packet.GetSize(), response, false) == PacketResult::Success)
|
||||
{
|
||||
do
|
||||
|
|
Loading…
Reference in New Issue