This is an archive of the discontinued LLVM Phabricator instance.

[clang][deps] Remove hard-coded resource directory from tests
ClosedPublic

Authored by jansvoboda11 on Dec 13 2021, 4:37 AM.

Details

Summary

Dependency scanner test for resource directory deduction doesn't account for LLVM builds with custom CLANG_RESOURCE_DIR.

This patch ensures we don't hardcode the default behavior into the test and take into account the actual value. This is done by running %clang -print-resource-dir and using that as the expected value in test assertions.
New comment also clarifies this is different from running that command as part of the dependency scan.

Diff Detail

Event Timeline

jansvoboda11 requested review of this revision.Dec 13 2021, 4:37 AM
jansvoboda11 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 13 2021, 4:37 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
mgorny accepted this revision.Dec 13 2021, 7:02 AM

I can confirm that the test failure is gone with this patch.

This revision is now accepted and ready to land.Dec 13 2021, 7:02 AM

I can confirm that the test failure is gone with this patch.

This revision was landed with ongoing or failed builds.Dec 14 2021, 2:38 AM
This revision was automatically updated to reflect the committed changes.