Details
- Reviewers
• Quuxplusone curdeius - Group Reviewers
Restricted Project - Commits
- rGaee005f9128a: [libcxx] [test] Fix windows errors in fs.op.rename
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.rename/rename.pass.cpp | ||
---|---|---|
66 | (1) Please add a trailing comma on line 67. |
libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.rename/rename.pass.cpp | ||
---|---|---|
66 |
|
LGTM! Although, if you wanted to scope-creep it, it might be nice to add a positive test for Windows' actual behavior. Right now IIUC you're making Windows lose all test coverage for this (interesting) case.
I can look into doing that later as follow-up. I see that the test otherwise also is lacking positive tests for renaming directories, and negative tests for dir->dir renames.
(1) Please add a trailing comma on line 67.
(2) I'd feel better if the comment were phrased in terms of the standard-specified behavior: is libc++'s current Win32 behavior conforming, or does libc++ actually need to go put a check inside std::filesystem::rename to deal with the moving-a-directory-onto-a-file situation because Win32 doesn't appropriately reject it? Can you find the chapter and verse that describes this behavior in the standard?