[libcxx-commits] [PATCH] D98640: [libcxx] [test] Fix windows errors in fs.op.rename
Martin Storsjö via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Mar 19 07:13:03 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGaee005f9128a: [libcxx] [test] Fix windows errors in fs.op.rename (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98640/new/
https://reviews.llvm.org/D98640
Files:
libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.rename/rename.pass.cpp
Index: libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.rename/rename.pass.cpp
===================================================================
--- libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.rename/rename.pass.cpp
+++ libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.rename/rename.pass.cpp
@@ -62,7 +62,13 @@
} cases[] = {
{dne, dne},
{file, dir},
- {dir, file}
+#ifndef _WIN32
+ // The spec doesn't say that this case must be an error; fs.op.rename
+ // note 1.2.1 says that a file may be overwritten by a rename.
+ // On Windows, with rename() implemented with MoveFileExW, overwriting
+ // a file with a directory is not an error.
+ {dir, file},
+#endif
};
for (auto& TC : cases) {
auto from_before = status(TC.from);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98640.331866.patch
Type: text/x-patch
Size: 844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210319/99221208/attachment.bin>
More information about the libcxx-commits
mailing list