This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Make a separate create_directory_symlink helper. NFC.
ClosedPublic

Authored by mstorsjo on Nov 9 2020, 5:54 AM.

Details

Summary

This more closely mirrors the public API, instead of using an obscure bool parameter.

Diff Detail

Event Timeline

mstorsjo created this revision.Nov 9 2020, 5:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 9 2020, 5:54 AM
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald Transcript
ldionne accepted this revision.Nov 9 2020, 7:53 AM
ldionne added a subscriber: ldionne.
ldionne added inline comments.
libcxx/test/support/filesystem_test_helper.h
347

Why do we not sanitize the source here?

This revision is now accepted and ready to land.Nov 9 2020, 7:53 AM
mstorsjo added inline comments.Nov 9 2020, 1:00 PM
libcxx/test/support/filesystem_test_helper.h
347

Sanitizing the path here converts it into an absolute one, while I guess it's intentional to keep the symlinks relative.

LGTM!

libcxx/test/support/filesystem_test_helper.h
347

Right, of course.