[llvm] [llvm][Support][Windows] Fix slash in path for remove_directories (PR #121448)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 2 08:36:06 PST 2025


================
@@ -1326,6 +1326,9 @@ TEST_F(FileSystemTest, Remove) {
 
   ASSERT_NO_ERROR(fs::remove_directories("D:/footest"));
 
+  ASSERT_NO_ERROR(fs::remove_directories(Twine(BaseDir) + "/foo/bar/baz"));
----------------
mstorsjo wrote:

Thanks; does this particular case fail before this change? (Or would we need to create this particular path first to check that it really is removed?)

https://github.com/llvm/llvm-project/pull/121448


More information about the llvm-commits mailing list