This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Fix weakly_canonical for windows
ClosedPublic

Authored by mstorsjo on Mar 15 2021, 10:51 AM.

Details

Diff Detail

Event Timeline

mstorsjo requested review of this revision.Mar 15 2021, 10:51 AM
mstorsjo created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2021, 10:51 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript

Ping - this is fairly straightforward, with similar handling with make_preferred() as in other similar tests.

Quuxplusone added a subscriber: Quuxplusone.

Seems fine to me. You'd get bonus points from me if you drive-by changed fs::path p(TC.input); to fs::path p = TC.input; 😉

curdeius accepted this revision.Mar 19 2021, 6:48 AM
curdeius added a subscriber: curdeius.

LGTM.

libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/weakly_canonical.pass.cpp
73

If you change p, then change`expect` as well.

This revision is now accepted and ready to land.Mar 19 2021, 6:48 AM
mstorsjo added inline comments.Mar 19 2021, 7:03 AM
libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/weakly_canonical.pass.cpp
73

Sure, can do that. Why is such a change desired/why does it matter btw?

This revision was automatically updated to reflect the committed changes.