diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-10 20:36:42 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-10 20:36:42 +0000 |
commit | 78dcc03c3791097ebefa7590269329abe616b26d (patch) | |
tree | b296216520a8dafe30cc72e21b25e3aa523f2e19 /llvm/unittests/Support/LockFileManagerTest.cpp | |
parent | bccb4fdd059e99c4c14d50d643aea022e285c4cf (diff) | |
download | llvm-78dcc03c3791097ebefa7590269329abe616b26d.zip llvm-78dcc03c3791097ebefa7590269329abe616b26d.tar.gz llvm-78dcc03c3791097ebefa7590269329abe616b26d.tar.bz2 |
Remove remove_all. A compiler has no need for recursively deleting a directory.
llvm-svn: 198955
Diffstat (limited to 'llvm/unittests/Support/LockFileManagerTest.cpp')
-rw-r--r-- | llvm/unittests/Support/LockFileManagerTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/Support/LockFileManagerTest.cpp b/llvm/unittests/Support/LockFileManagerTest.cpp index 3c84f4d..1f949a3 100644 --- a/llvm/unittests/Support/LockFileManagerTest.cpp +++ b/llvm/unittests/Support/LockFileManagerTest.cpp @@ -40,7 +40,8 @@ TEST(LockFileManagerTest, Basic) { // Now that the lock is out of scope, the file should be gone. EXPECT_FALSE(sys::fs::exists(StringRef(LockedFile))); - sys::fs::remove_all(StringRef(TmpDir)); + EC = sys::fs::remove(StringRef(TmpDir)); + ASSERT_FALSE(EC); } } // end anonymous namespace |