This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [llgs] Refactor fork/vfork tests, verify state
ClosedPublic

Authored by mgorny on Jun 8 2022, 4:14 AM.

Details

Summary

Refactor the fork and vfork tests to reuse the code better, avoid
unnecessary regexps and avoid unnecessary conversions between
hex-strings and integers.

Verify the server state after detaching. In particular, verify that
the detached process' PID/TID pair is no longer valid,
and that the correct process remains running.

Sponsored by: The FreeBSD Foundation

Diff Detail

Event Timeline

mgorny created this revision.Jun 8 2022, 4:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2022, 4:14 AM
Herald added a subscriber: arichardson. · View Herald Transcript
mgorny requested review of this revision.Jun 8 2022, 4:14 AM
mgorny updated this revision to Diff 435160.Jun 8 2022, 7:55 AM

Remove leftover local fork_regex.

labath accepted this revision.Jun 20 2022, 12:13 AM
This revision is now accepted and ready to land.Jun 20 2022, 12:13 AM
This revision was landed with ongoing or failed builds.Jun 21 2022, 10:47 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2022, 10:47 AM