Skip to content

Commit 7e72bca

Browse files
committed
Fix the unittest about remove_directories
1 parent af2c165 commit 7e72bca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/unittests/Support/Path.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,6 +1326,9 @@ TEST_F(FileSystemTest, Remove) {
13261326

13271327
ASSERT_NO_ERROR(fs::remove_directories("D:/footest"));
13281328

1329+
ASSERT_NO_ERROR(fs::remove_directories(Twine(BaseDir) + "/foo/bar/baz"));
1330+
ASSERT_FALSE(fs::exists(Twine(BaseDir) + "/foo/bar/baz"));
1331+
13291332
ASSERT_NO_ERROR(fs::remove_directories(BaseDir));
13301333
ASSERT_FALSE(fs::exists(BaseDir));
13311334
}

0 commit comments

Comments
 (0)