HomePhabricator

[lldb] Make TestDeletedExecutable more reliable

Authored by teemperor on Jul 11 2019, 12:27 PM.

Description

[lldb] Make TestDeletedExecutable more reliable

Summary:
It seems that calling Popen can return to the caller before the started process has read all the needed information
from its executable. This means that in case we delete the executable while the process is still starting up,
this test will create a zombie process which in turn leads to a failing test. On my macOS system this happens quite frequently.

This patch fixes this by letting the test synchronize with the inferior after it has started up.

Reviewers: davide

Reviewed By: davide

Subscribers: labath, friss, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D64546

llvm-svn: 365813

Details

Committed
teemperorJul 11 2019, 12:27 PM
Reviewer
davide
Differential Revision
D64546: [lldb] Make TestDeletedExecutable more reliable
Parents
rG60b71ce0e4f2: [lldb] Don't use __FUNCTION__ as a file name
Branches
Unknown
Tags
Unknown