This is an archive of the discontinued LLVM Phabricator instance.

[llvm-lit] Improve the error message when make_paths_relative() fails
ClosedPublic

Authored by ldionne on Oct 22 2020, 1:46 PM.

Details

Summary

Previously, if make_paths_relative() failed due to some reason, it would
happily keep going and set the ${out_pathlist} to the standard output
of the command, which would be the empty string if the command failed.

This can lead to issues that are difficult to diagnose, since the calling
code will usually try to keep going with a variable that was set to the
empty string.

Diff Detail

Event Timeline

ldionne created this revision.Oct 22 2020, 1:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 22 2020, 1:46 PM
ldionne requested review of this revision.Oct 22 2020, 1:46 PM
thakis accepted this revision.Oct 28 2020, 9:35 AM
This revision is now accepted and ready to land.Oct 28 2020, 9:35 AM
This revision was landed with ongoing or failed builds.Oct 28 2020, 2:06 PM
This revision was automatically updated to reflect the committed changes.