This is an archive of the discontinued LLVM Phabricator instance.

[lld] Add test suite mode for running LLD main twice
ClosedPublic

Authored by smeenai on Oct 31 2021, 5:01 PM.

Details

Summary

LLD_IN_TEST determines how many times each port's main function is
run in each LLD process, and setting LLD_IN_TEST=2 (or higher) is useful
for checking if we're cleaning up and resetting global state correctly.
Add a test suite parameter to enable this easily. There's work in
progress to remove global state (e.g. D108850), but this seems useful in
the interim.

Diff Detail

Event Timeline

smeenai created this revision.Oct 31 2021, 5:01 PM
Herald added a project: Restricted Project. · View Herald Transcript
smeenai requested review of this revision.Oct 31 2021, 5:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 31 2021, 5:01 PM
smeenai updated this revision to Diff 383696.Oct 31 2021, 5:04 PM

Use XFAIL instead of unsupported, so that we get notified if the behavior changes

rnk accepted this revision.Nov 1 2021, 12:44 PM

lgtm

This revision is now accepted and ready to land.Nov 1 2021, 12:44 PM
This revision was automatically updated to reflect the committed changes.