diff --git a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.rename/rename.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.rename/rename.pass.cpp --- a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.rename/rename.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.rename/rename.pass.cpp @@ -62,7 +62,10 @@ } cases[] = { {dne, dne}, {file, dir}, +#ifndef _WIN32 + // Overwriting a file with a directory isn't an error with MoveFileExW. {dir, file} +#endif }; for (auto& TC : cases) { auto from_before = status(TC.from);