This is an archive of the discontinued LLVM Phabricator instance.

[lit] Fix setup of sanitizer environment
ClosedPublic

Authored by vitalybuka on Mar 31 2022, 11:01 PM.

Details

Summary

Not all options were propageted into tests.

Diff Detail

Unit TestsFailed

Event Timeline

vitalybuka created this revision.Mar 31 2022, 11:01 PM
Herald added a project: Restricted Project. · View Herald Transcript
vitalybuka requested review of this revision.Mar 31 2022, 11:01 PM
Herald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald TranscriptMar 31 2022, 11:01 PM
ychen added a subscriber: ychen.Apr 1 2022, 12:47 PM
ychen added inline comments.
clang/test/Unit/lit.cfg.py
33

How about initializing an LLVMConfig instance instead of replicating this for each project? Although LLVMConfig does some extra handling, I guess it shouldn't hurt anything.

vitalybuka added inline comments.Apr 1 2022, 12:51 PM
clang/test/Unit/lit.cfg.py
33

This is /Unit/, not a regular lit test, maybe it will work, but it should be a different patch.
I can try as followup?

ychen accepted this revision.Apr 1 2022, 3:56 PM

I'm looking at relevant code recently. This LGTM.

clang/test/Unit/lit.cfg.py
33

yeah, sounds good to me.

This revision is now accepted and ready to land.Apr 1 2022, 3:56 PM
This revision was landed with ongoing or failed builds.May 19 2022, 7:24 PM
This revision was automatically updated to reflect the committed changes.