This is an archive of the discontinued LLVM Phabricator instance.

Don't let test/Driver/no-canonical-prefixes.c form a symlink cycle the second time it runs.
ClosedPublic

Authored by thakis on Jun 15 2018, 9:11 AM.

Details

Reviewers
chandlerc
rnk
Summary

The test makes %t.fake a symlink to %t.real by running ln -sf %t.real %t.fake. If %t.fake already is a symlink to %t.real when this runs (e.g. if the test has run before), then this effectively becomes ln -sf %t.real %t.real, symlinking the directory to itself. At least on my mac, this leads to the directory containing itself.

As fix, just remove %t.fake before creating the symlink. To clean up build dirs on bots, also remove %t.real for a while.

Diff Detail

Event Timeline

thakis created this revision.Jun 15 2018, 9:11 AM
rnk accepted this revision.Jun 18 2018, 11:36 AM
rnk added a subscriber: rnk.

lgtm

This revision is now accepted and ready to land.Jun 18 2018, 11:36 AM
thakis closed this revision.Jun 18 2018, 11:55 AM

r334972, thanks!