This is an archive of the discontinued LLVM Phabricator instance.

test fix: TestLoadUsingPaths should use realpath
ClosedPublic

Authored by lawrence_danna on Oct 7 2019, 6:06 PM.

Details

Summary

TestLoadUsingPaths will fail if the build directory has
symlinks in its path, because the real paths reported by
the debugger won't match the symlink-laden paths it's expecting.

This can be solved just by using os.path.realpath on the base
path for the test.

Diff Detail

Repository
rL LLVM

Event Timeline

lawrence_danna created this revision.Oct 7 2019, 6:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 7 2019, 6:06 PM
JDevlieghere accepted this revision.Oct 7 2019, 6:09 PM
This revision is now accepted and ready to land.Oct 7 2019, 6:09 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 7 2019, 10:26 PM