This is an archive of the discontinued LLVM Phabricator instance.

[Debuginfod] Fix debuginfod unit test when $HOME is not writable.
ClosedPublic

Authored by noajshu on Dec 15 2021, 11:23 AM.

Details

Summary

The directory returned from cache_directory may not be writable if the unit tests are run with limited permissions (e.g. if $HOME is not writable).
This fixes a unit test of the debuginfod client to set the cache path to the system temporary directory to avoid this issue.

Diff Detail

Event Timeline

noajshu requested review of this revision.Dec 15 2021, 11:23 AM
noajshu created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2021, 11:23 AM
noajshu retitled this revision from Debuginfod] Fix debuginfod unit test when $HOME is not writable. to [Debuginfod] Fix debuginfod unit test when $HOME is not writable..Dec 15 2021, 11:23 AM
This revision is now accepted and ready to land.Dec 15 2021, 2:00 PM
This revision was landed with ongoing or failed builds.Dec 15 2021, 2:21 PM
This revision was automatically updated to reflect the committed changes.