[lldb] Fix flakyness in TestProcessList
authorPavel Labath <pavel@labath.sk>
Mon, 1 Aug 2022 14:00:46 +0000 (16:00 +0200)
committerPavel Labath <pavel@labath.sk>
Mon, 1 Aug 2022 14:05:01 +0000 (16:05 +0200)
commitb53641cb72acae8973a16c4f5567885bd3fe85c0
treea9b223cd7920bc1ab1376c1f1a931a07646e9580
parent3aae8cd8422dcd3ddaa1a6de146b18d8e9cd274f
[lldb] Fix flakyness in TestProcessList

If the test is too fast it can read the process list before the forked
child process actually manages to exec the process with the right
arguments.

Use our file-based synchronization primitives to ensure the child is
up-and-running before we fetch the process list.
lldb/test/API/commands/platform/process/list/TestProcessList.py
lldb/test/API/commands/platform/process/list/main.cpp