This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Make several attempts to read the PID in TestAppleSimulatorOSType
ClosedPublic

Authored by JDevlieghere on Aug 11 2020, 10:34 AM.

Details

Reviewers
aprantl
Summary

The current code fails when the the first attempt to read the PID from stderr doesn't match the given regex. This patch changes the code to make up to 10 attempts.

Diff Detail

Repository
rLLDB LLDB

Event Timeline

JDevlieghere requested review of this revision.Aug 11 2020, 10:34 AM
JDevlieghere created this revision.
aprantl accepted this revision.Aug 11 2020, 10:52 AM
aprantl added inline comments.
lldb/test/API/tools/lldb-server/TestAppleSimulatorOSType.py
66

I'm not sure I would call this RETRIES since we're just reading more lines from stderr. May MAX_LINES?

This revision is now accepted and ready to land.Aug 11 2020, 10:52 AM
JDevlieghere closed this revision.Aug 11 2020, 11:12 AM

Forgot the link in the commit message. Landed in 7adf5bd18147b8acdab6e2720b4073e8c35bdf9a